/* Custom dynamic results styles for CR3 to JPG Converter in Light Mode */

.summary {
  margin-bottom: 20px;
}

.charts-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 15px 0 25px 0;
  padding: 20px;
  background: rgba(254, 243, 199, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

.pie-chart {
  width: 70px;
  height: 70px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563; /* gray-600 */
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* File Results List */
.file-result {
  margin: 10px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
}

.file-result:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.file-info-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.filename {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937; /* gray-800 */
  min-width: 120px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.size-bar-container {
  position: relative;
  flex: 1;
  height: 18px;
}

.size-bar-original {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #e5e7eb; /* gray-200 */
  border-radius: 6px;
  overflow: visible;
}

.size-bar-compressed {
  position: relative;
  height: 100%;
  background-color: rgba(245, 158, 11, 0.25); /* Amber tint */
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  transition: width 0.3s ease-out;
}

.compression-text {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 800;
}

.compression-text.savings {
  color: #b45309; /* amber-700 */
}

.compression-text.no-savings {
  color: #b45309; /* amber-700 */
}

.savings {
  color: #f59e0b; /* amber-500 */
}

.no-savings {
  color: #d97706; /* amber-600 */
}

/* File list heading */
#results h3 {
  font-family: 'Telex', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin: 15px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
