/* Navigation and header styling */
.menu-column {
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ff6b6b;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Page structure */
.page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: left;
    margin-bottom: 20px;
}

/* Upload area */
.upload-area {
    border: 2px dashed #3498db;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #ddd;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.upload-area.active {
    border-color: #3498db;
    background-color: #e3f2fd;
}

.upload-icon {
    font-size: 55px;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

/* File information */
.file-info {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #EBF5FB;
    border-radius: 6px;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 15px;
}

button, .button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.25);
}

button:hover, .button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(41, 128, 185, 0.3);
}

#resetBtn {
    background-color: #e74c3c;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.25);
}

#resetBtn:hover {
    background-color: #c0392b;
    box-shadow: 0 6px 12px rgba(192, 57, 43, 0.3);
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Quality settings */
.options {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

/* Quality settings */
.optionsw {
    margin: 5px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.optionsw label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

/* Slider styling */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #2ecc71, #f1c40f, #e74c3c);
    outline: none;
    opacity: 0.85;
    transition: opacity 0.2s, box-shadow 0.3s;
    margin: 10px 0;
}

.slider:hover {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Progress bar */
.progress-container {
    display: none;
    margin: 25px 0;
}

.progress-bar {
    height: 12px;
    background-color: #ecf0f1;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 6px;
}

#progressText {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

/* Message boxes */
.error {
    color: #c0392b;
    background-color: #fadbd8;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: none;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.2);
    font-weight: 500;
}

/* Enhanced success message - more compact */
.success {
    background-color: #e7f7ed;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: none;
    box-shadow: 0 3px 15px rgba(46, 204, 113, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.success-icon {
    font-size: 30px;
    color: #2ecc71;
    margin-right: 10px;
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    color: #2ecc71;
}

.download-button {
    display: inline-block;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
    font-weight: 600;
    padding: 15px 35px; /* Increased padding */
    border-radius: 30px;
    font-size: 18px; /* Increased font size */
    margin: 5px 0 20px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    border: none;
    cursor: pointer;
    width: auto;
    min-width: 250px; /* Ensure minimum width */
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    background: linear-gradient(to right, #27ae60, #219653);
}

.download-icon {
    margin-right: 10px;
    font-size: 20px; /* Bigger icon */
}

.file-stats {
    display: flex;
    justify-content: center;
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #555;
    width: 100%;
}

.file-stats div {
    padding: 0 15px;
    border-right: 1px solid #ddd;
    text-align: center;
}

.file-stats div:last-child {
    border-right: none;
}

.file-stats .stat-value {
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-top: 5px;
    color: #333;
}

.reduction-badge {
    display: inline-block;
    background-color: #3498db;
    color: white;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    margin-top: 5px;
}

/* Information sections */
.info-section {
    margin-top: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Selected files display */
.selected-files {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selected-files h4 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 10px;
}

.selected-files ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-files li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.selected-files li:last-child {
    border-bottom: none;
}

/* Converted files list */
.converted-files {
    margin-top: 20px;
    text-align: left;
}

.converted-files h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.converted-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.file-name {
    flex: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    flex: 1;
    text-align: right;
    margin-right: 10px;
}

.file-download {
    flex: 0 0 30px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
}

.conversion-summary h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-row {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-column {
        margin-top: 15px;
    }
    
    .main-nav li {
        margin: 0 10px;
    }
    
    .upload-area {
        padding: 25px 15px;
    }
    
    .file-stats {
        flex-direction: column;
    }
    
    .file-stats div {
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .file-stats div:last-child {
        border-bottom: none;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    button, .button, .download-button {
        width: 100%;
    }
}

/* Base container styles */
.info-container-base {
  max-width: 510px;
  padding: 30px 30px 38px; /* Extra bottom padding for the accent bar */
  border: none;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.07);
  background-color: #ffffff;
  position: relative;
}

/* Accent bar base style - positioned at bottom */
.accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Tricolor bar styles */
.accent-bar.tricolor-bgr {
  background: linear-gradient(to right, 
    #3498db 0%, #3498db 33.33%, 
    #2ecc71 33.33%, #2ecc71 66.66%, 
    #e74c3c 66.66%, #e74c3c 100%);
  height: 6px;
}

.accent-bar.tricolor-gry {
  background: linear-gradient(to right, 
    #2ecc71 0%, #2ecc71 33.33%, 
    #e74c3c 33.33%, #e74c3c 66.66%, 
    #f1c40f 66.66%, #f1c40f 100%);
  height: 5px;
}

/* Monocolor bar styles */
.accent-bar.blue {
  background-color: #3498db; /* Blue */
  height: 6px;
}

.accent-bar.green {
  background-color: #2ecc71; /* Green */
  height: 5px;
}

.accent-bar.red {
  background-color: #e74c3c; /* Red */
  height: 6px;
}

.accent-bar.yellow {
  background-color: #f1c40f; /* Yellow */
  height: 6px;
}

/* Full width content wrapper */
.full-width-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Full width info container */
.info-container-full {
    width: 100%;
    padding: 30px 30px 38px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
    background-color: #ffffff;
    position: relative;
}

/* Info header styling */
.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 24px;
}

.info-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Modified content row */
.content-row-2 {
    padding: 30px 0;
    background-color: #f5f5f5;
    width: 100%;
}

/* Ad container special styling */
.ad-container {
    background-color: transparent;
    box-shadow: none;
    padding: 20px 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .info-container-full {
        padding: 20px 20px 30px;
    }
}

/* Stats container styling */
.stats-container {
    padding-bottom: 38px;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.total-stats {
    border-left: 5px solid #3498db;
}

.hourly-stats {
    border-left: 5px solid #2ecc71;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.2;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .stats-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

/* Recommendation section styling - now outside the options box */
.conversion-recommendations {
    margin: 15px 0 25px 0;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.conversion-recommendations p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Improved bullet styling for lists */
.info-container-full ol,
.info-container-full ul {
    padding-left: 0;
    list-style-position: inside;
    margin: 15px 0;
}

/* Custom styling for ordered lists (How to Convert) */
.info-container-full ol {
    counter-reset: item;
    list-style-type: none;
}

.info-container-full ol li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 18px;
    counter-increment: item;
}

.info-container-full ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
	background: #2eb5cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.info-container-full ol li:last-child {
    margin-bottom: 0;
}

/* Custom styling for unordered lists */
.info-container-full ul {
    list-style-type: none;
}

.info-container-full ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.info-container-full ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: #f1c40f;
    border-radius: 3px;
}

/* Different colors for quality settings list */
.info-container-full ul li:nth-child(1):before {
    background-color: #2ecc71; /* Green for high quality */
}

.info-container-full ul li:nth-child(2):before {
    background-color: #3498db; /* Blue for good quality */
}

.info-container-full ul li:nth-child(3):before {
    background-color: #f1c40f; /* Yellow for medium quality */
}

.info-container-full ul li:nth-child(4):before {
    background-color: #e74c3c; /* Red for low quality */
}

/* Important notes list styling */
.info-container-full h3 + ul li:before {
    background-color: #9b59b6; /* Purple for important notes */
    border-radius: 50%; /* Round bullet for important notes */
}

/* Media query for responsive design */
@media screen and (max-width: 768px) {
    .info-container-full ol li {
        padding-left: 40px;
    }
    
    .info-container-full ol li:before {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .info-container-full ul li {
        padding-left: 22px;
    }
    
    .info-container-full ul li:before {
        width: 10px;
        height: 10px;
    }
}

/* Frame Grid Styling */
.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.frame-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.frame-preview {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    position: relative;
}

.frame-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.frame-info {
    padding: 8px;
    text-align: center;
    background-color: white;
    border-top: 1px solid #eee;
}

.frame-number {
    font-weight: 600;
    font-size: 12px;
    color: #333;
}

.frame-timing {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.frame-download {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #3498db;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.frame-item:hover .frame-download {
    opacity: 1;
}

/* Add a subtle darkening effect on hover to make the download icon stand out more */
.frame-preview:hover:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.more-frames {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.frames-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

.frames-container h4 {
    color: #333;
    margin-bottom: 10px;
}

.more-frames-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
transition: color 0.2s ease;
}

.more-frames-link:hover {
   color: #2980b9;
   text-decoration: underline;
}

/* Checkbox styling */
.checkbox-option {
   margin-top: 10px;
   display: flex;
   align-items: center;
}

.checkbox-option input[type="checkbox"] {
   margin-right: 8px;
}

/* Select styling */
select {
   width: 100%;
   padding: 10px;
   border: 1px solid #ddd;
   border-radius: 5px;
   background-color: #fff;
   margin-bottom: 10px;
   font-size: 14px;
   color: #333;
}

select:focus {
   outline: none;
   border-color: #3498db;
   box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
   .frames-grid {
       grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
       gap: 10px;
   }
   
   .frame-preview {
       height: 90px;
   }
   
   .file-stats {
       flex-direction: column;
   }
   
   .file-stats div {
       padding: 5px 0;
       border-right: none;
       border-bottom: 1px solid #eee;
   }
   
   .file-stats div:last-child {
       border-bottom: none;
   }
}

/* Sheet navigation styling */
.sheet-navigation {
   margin: 20px 0;
   padding: 15px;
   background-color: #f8f9fa;
   border-radius: 8px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sheet-navigation label {
   display: inline-block;
   margin-right: 10px;
   font-weight: 600;
   color: #2c3e50;
}

.sheet-navigation select {
   margin-right: 15px;
}

#sheetInfo {
   color: #666;
   font-size: 14px;
}

/* Excel table styling */
.excel-table-container {
   margin-top: 20px;
   max-height: 600px;
   overflow: auto;
   border: 1px solid #ddd;
   border-radius: 8px;
   background-color: white;
}

.excel-table {
   width: 100%;
   border-collapse: collapse;
   font-family: 'Courier New', monospace;
   font-size: 12px;
}

.excel-table th {
   background-color: #f5f5f5;
   border: 1px solid #ddd;
   padding: 8px 12px;
   text-align: left;
   font-weight: 600;
   position: sticky;
   top: 0;
   z-index: 10;
}

.excel-table td {
   border: 1px solid #eee;
   padding: 6px 12px;
   white-space: nowrap;
   max-width: 200px;
   overflow: hidden;
   text-overflow: ellipsis;
}

.excel-table tr:nth-child(even) {
   background-color: #f9f9f9;
}

.excel-table tr:hover {
   background-color: #e3f2fd;
}

/* JSON display styling */
.json-container {
   margin-top: 20px;
   max-height: 600px;
   overflow: auto;
   border: 1px solid #ddd;
   border-radius: 8px;
   background-color: #f8f9fa;
}

.json-data {
   padding: 20px;
   margin: 0;
   font-family: 'Courier New', monospace;
   font-size: 12px;
   line-height: 1.4;
   color: #333;
   white-space: pre-wrap;
   word-wrap: break-word;
}

/* Excel info styling */
.excel-info {
   text-align: center;
   margin: 15px 0;
}

.excel-info h3 {
   margin: 0 0 5px 0;
   color: #2c3e50;
}

.excel-info p {
   margin: 0;
   color: #666;
   font-size: 14px;
}

/* CSV-specific styling additions */

/* CSV table styling */
.csv-table-container {
   margin-top: 20px;
   max-height: 600px;
   overflow: auto;
   border: 1px solid #ddd;
   border-radius: 8px;
   background-color: white;
}

.csv-table {
   width: 100%;
   border-collapse: collapse;
   font-family: 'Courier New', monospace;
   font-size: 12px;
}

.csv-table th {
   background-color: #f5f5f5;
   border: 1px solid #ddd;
   padding: 8px 12px;
   text-align: left;
   font-weight: 600;
   position: sticky;
   top: 0;
   z-index: 10;
}

.csv-table td {
   border: 1px solid #eee;
   padding: 6px 12px;
   white-space: nowrap;
   max-width: 200px;
   overflow: hidden;
   text-overflow: ellipsis;
}

.csv-table tr:nth-child(even) {
   background-color: #f9f9f9;
}

.csv-table tr:hover {
   background-color: #e3f2fd;
}

/* CSV info styling */
.csv-info {
   text-align: center;
   margin: 15px 0;
}

.csv-info h3 {
   margin: 0 0 5px 0;
   color: #2c3e50;
}

.csv-info p {
   margin: 0;
   color: #666;
   font-size: 14px;
}

/* Enhanced delimiter selection */
.options select {
   width: 100%;
   padding: 10px;
   border: 1px solid #ddd;
   border-radius: 5px;
   background-color: #fff;
   margin-bottom: 10px;
   font-size: 14px;
   color: #333;
}

.options select:focus {
   outline: none;
   border-color: #3498db;
   box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Table cell hover effects for CSV */
.csv-table td:hover {
   background-color: #fff3cd !important;
   cursor: default;
}

/* Full page view styling */
.fullpage-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.9);
   z-index: 9999;
   display: none;
   overflow: auto;
}

.fullpage-content {
   position: relative;
   width: 100%;
   height: 100%;
   padding: 20px;
   box-sizing: border-box;
}

.fullpage-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   background-color: #2c3e50;
   color: white;
   padding: 15px 20px;
   margin-bottom: 20px;
   border-radius: 8px;
   position: sticky;
   top: 20px;
   z-index: 10000;
}

.fullpage-title {
   font-size: 18px;
   font-weight: 600;
   margin: 0;
}

.fullpage-controls {
   display: flex;
   gap: 15px;
   align-items: center;
}

.fullpage-zoom-controls {
   display: flex;
   gap: 10px;
   align-items: center;
}

.zoom-btn {
   background-color: #34495e;
   color: white;
   border: none;
   padding: 8px 12px;
   border-radius: 4px;
   cursor: pointer;
   font-size: 14px;
   transition: background-color 0.3s ease;
}

.zoom-btn:hover {
   background-color: #4a6278;
}

.zoom-level {
   color: #ecf0f1;
   font-size: 14px;
   min-width: 50px;
   text-align: center;
}

.close-fullpage {
   background-color: #e74c3c;
   color: white;
   border: none;
   padding: 10px 15px;
   border-radius: 4px;
   cursor: pointer;
   font-size: 14px;
   font-weight: 600;
   transition: background-color 0.3s ease;
}

.close-fullpage:hover {
   background-color: #c0392b;
}

.fullpage-table-container {
   background-color: white;
   border-radius: 8px;
   overflow: auto;
   max-height: calc(100vh - 120px);
   border: 1px solid #ddd;
}

.fullpage-table {
   width: 100%;
   border-collapse: collapse;
   font-family: 'Courier New', monospace;
   transition: font-size 0.3s ease;
}

.fullpage-table th {
   background-color: #f8f9fa;
   border: 1px solid #ddd;
   padding: 12px 15px;
   text-align: left;
   font-weight: 600;
   position: sticky;
   top: 0;
   z-index: 100;
   white-space: nowrap;
}

.fullpage-table td {
   border: 1px solid #eee;
   padding: 10px 15px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 300px;
}

.fullpage-table tr:nth-child(even) {
   background-color: #f9f9f9;
}

.fullpage-table tr:hover {
   background-color: #e3f2fd;
}

.fullpage-table td:hover {
   background-color: #fff3cd !important;
   cursor: pointer;
   position: relative;
}

/* Tooltip for long cell content */
.cell-tooltip {
   position: absolute;
   background-color: #333;
   color: white;
   padding: 8px 12px;
   border-radius: 4px;
   font-size: 12px;
   z-index: 10001;
   max-width: 300px;
   word-wrap: break-word;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
   pointer-events: none;
}

/* Zoom levels */
.zoom-75 { font-size: 9px; }
.zoom-90 { font-size: 11px; }
.zoom-100 { font-size: 12px; }
.zoom-110 { font-size: 13px; }
.zoom-125 { font-size: 15px; }
.zoom-150 { font-size: 18px; }

/* Full page view button */
.fullpage-btn {
   background-color: #9b59b6;
   color: white;
   border: none;
   padding: 10px 15px;
   border-radius: 4px;
   cursor: pointer;
   font-size: 12px;
   margin-left: 10px;
   transition: background-color 0.3s ease;
}

.fullpage-btn:hover {
   background-color: #8e44ad;
}

/* Keyboard shortcut indicator */
.keyboard-hint {
   font-size: 11px;
   color: #bdc3c7;
   margin-left: 5px;
}

/* FAQ section - Updated to match image resizer styling */
.faq-section {
   margin-top: 20px;
}

.faq-item {
   margin-bottom: 12px;
   border: 1px solid #e2e8f0;
   border-radius: 8px;
   overflow: hidden;
   transition: all 0.3s ease;
}

.faq-item:hover {
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
   padding: 20px;
   background: #f8fafc;
   cursor: pointer;
   font-weight: 600;
   display: flex;
   justify-content: space-between;
   align-items: center;
   transition: all 0.3s ease;
   color: #2c3e50;
}

.faq-question:hover {
   background: #eef2f7;
}

.faq-item.active .faq-question {
   background: #3498db;
   color: white;
}

.faq-answer {
   padding: 0 20px;
   max-height: 0;
   overflow: hidden;
   background: #ffffff;
   transition: all 0.3s ease;
   color: #64748b;
   line-height: 1.6;
}

.faq-item.active .faq-answer {
   padding: 20px;
   max-height: 500px;
}

.faq-toggle {
   font-size: 20px;
   font-weight: bold;
   transition: transform 0.3s ease;
   color: #3498db;
}

.faq-item.active .faq-toggle {
   transform: rotate(45deg);
   color: white;
}

/* Loading states for CSV */
.csv-table-container.loading {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 200px;
   background-color: #f8f9fa;
}

.loading-spinner {
   border: 4px solid #f3f3f3;
   border-top: 4px solid #3498db;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

/* Enhanced upload area for CSV files */
.upload-area .upload-icon {
   font-size: 48px;
   color: #27ae60;
}

/* Success message customization for CSV viewer */
.success .success-icon {
   color: #27ae60;
}

/* Copy functionality */
.copy-btn {
   background-color: #6c757d;
   color: white;
   border: none;
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 11px;
   cursor: pointer;
   margin-left: 10px;
}

.copy-btn:hover {
   background-color: #5a6268;
}

/* Responsive adjustments for CSV viewer */
@media screen and (max-width: 768px) {
   .csv-table {
       font-size: 11px;
   }
   
   .csv-table th,
   .csv-table td {
       padding: 4px 6px;
       max-width: 120px;
   }
   
   .csv-table-container {
       max-height: 400px;
   }
   
   .options > div {
       flex-direction: column;
   }
   
   .options > div > div {
       width: 100% !important;
       margin-bottom: 15px;
   }
   
   .fullpage-header {
       flex-direction: column;
       gap: 10px;
       padding: 10px 15px;
   }
   
   .fullpage-controls {
       width: 100%;
       justify-content: space-between;
   }
   
   .fullpage-zoom-controls {
       gap: 5px;
   }
   
   .zoom-btn {
       padding: 6px 8px;
       font-size: 12px;
   }
   
   .fullpage-table th,
   .fullpage-table td {
       padding: 8px 10px;
       max-width: 150px;
   }
   
   .fullpage-content {
       padding: 10px;
   }
   
   .fullpage-table-container {
       max-height: calc(100vh - 140px);
   }
   
   .faq-question {
       padding: 16px;
       font-size: 14px;
   }
   
   .faq-answer {
       font-size: 14px;
   }
   
   .faq-item.active .faq-answer {
       padding: 16px;
   }
}

/* Accessibility improvements */
.faq-question:focus-visible {
   outline: 2px solid #3498db;
   outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
   .faq-answer,
   .faq-toggle,
   .faq-item {
       transition: none !important;
   }
}



/* Recommendations */
.conversion-recommendations {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.recommendations-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.recommendations-icon {
    font-size: 20px;
}

.recommendations-text {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tool-link {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.tool-link.compress {
    background: #81DCA1;
    color: #2d5a3d;
}

.tool-link.compress:hover {
    background: #6bc788;
}

.tool-link.webp {
    background: #ff9800;
    color: #5d3600;
}

.tool-link.webp:hover {
    background: #e68900;
}

.tool-link.avif {
    background: #B8DFFF;
    color: #1a4480;
}

.tool-link.avif:hover {
    background: #9fd1ff;
}



/* CSS Color Editor specific styles - ADD TO EXISTING stylef.css */

/* Color palette */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.color-circle.selected {
    border: 3px solid #007cba;
    box-shadow: 0 0 10px rgba(0,124,186,0.5);
}

.color-info {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 120px;
    text-align: center;
}

.color-circle:hover .color-info {
    opacity: 1;
}

/* Enhanced CSS Editor */
.css-editor-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin: 20px 0;
}

#css-editor {
    width: 100%;
    height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: none;
    padding: 15px;
    resize: vertical;
    border-radius: 8px;
    outline: none;
    background: #fafafa;
    line-height: 1.5;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
}

#css-editor:focus {
    background: #fff;
    border: 2px solid #3498db;
    outline: none;
}

#css-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 15px;
    white-space: pre;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    line-height: 1.5;
    box-sizing: border-box;
    display: none;
}

/* Show highlight overlay only when highlighting is active */
.css-editor-container.highlighting #css-display {
    display: block;
}

.css-editor-container.highlighting #css-editor {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    caret-color: #000;
}

/* Color highlighting */
.highlight-color {
    background-color: #ffeb3b !important;
    padding: 1px 2px;
    border-radius: 2px;
    animation: pulse-highlight 2s ease-in-out;
    border: 1px solid #ffc107;
    box-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}

.highlight-current {
    background-color: #ff5722 !important;
    color: white !important;
    font-weight: bold;
    animation: current-highlight 1s ease-in-out;
}

@keyframes pulse-highlight {
    0% { background-color: #ffeb3b; }
    50% { background-color: #ff9800; }
    100% { background-color: #ffeb3b; }
}

@keyframes current-highlight {
    0% { background-color: #ff5722; transform: scale(1); }
    50% { background-color: #ff9800; transform: scale(1.1); }
    100% { background-color: #ff5722; transform: scale(1); }
}

.highlight-count {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* Clickable variant styles */
.variant-link {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    font-family: monospace;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.variant-link:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.variant-link.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.variant-count {
    background: #6c757d;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 8px;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 14px;
    text-align: center;
}

/* Color reference table */
.color-reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-reference-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #2c3e50;
}

.color-reference-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.color-reference-table tr:hover {
    background-color: #f8f9fa;
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.1);
}

/* Enhanced highlighting info */
#highlight-info {
    margin-bottom: 20px;
}

.highlight-info-content {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    color: #1565c0;
}

/* Responsive design for CSS editor */
@media (max-width: 768px) {
    .color-palette {
        gap: 10px;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    #css-editor {
        height: 300px;
        font-size: 12px;
    }
    
    .variant-link {
        font-size: 12px;
        padding: 3px 6px;
    }
}


/* CSS Color Editor specific styles - ADD TO EXISTING stylef.css */

/* Color palette */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.color-circle.selected {
    border: 3px solid #007cba;
    box-shadow: 0 0 10px rgba(0,124,186,0.5);
}

.color-info {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 120px;
    text-align: center;
}

.color-circle:hover .color-info {
    opacity: 1;
}

/* Enhanced CSS Editor */
.css-editor-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    height: 400px;
    overflow: hidden;
    margin: 20px 0;
}

#css-editor {
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: none;
    padding: 10px;
    resize: none;
    overflow-y: auto;
    white-space: pre;
    outline: none;
    background: transparent;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

#css-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 10px;
    white-space: pre;
    overflow: hidden;
    background: #fff;
    z-index: 1;
    pointer-events: none;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Color highlighting */
.highlight-color {
    background-color: #ffeb3b !important;
    padding: 1px 2px;
    border-radius: 2px;
    animation: pulse-highlight 2s ease-in-out;
    border: 1px solid #ffc107;
    box-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}

.highlight-current {
    background-color: #ff5722 !important;
    color: white !important;
    font-weight: bold;
    animation: current-highlight 1s ease-in-out;
}

@keyframes pulse-highlight {
    0% { background-color: #ffeb3b; }
    50% { background-color: #ff9800; }
    100% { background-color: #ffeb3b; }
}

@keyframes current-highlight {
    0% { background-color: #ff5722; transform: scale(1); }
    50% { background-color: #ff9800; transform: scale(1.1); }
    100% { background-color: #ff5722; transform: scale(1); }
}

.highlight-count {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* Clickable variant styles */
.variant-link {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px;
    font-family: monospace;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.variant-link:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.variant-link.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.variant-count {
    background: #6c757d;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 8px;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 14px;
    text-align: center;
}

/* Color reference table */
.color-reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-reference-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #2c3e50;
}

.color-reference-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.color-reference-table tr:hover {
    background-color: #f8f9fa;
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.1);
}

/* Responsive design for CSS editor */
@media (max-width: 768px) {
    .color-palette {
        gap: 10px;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    #css-editor {
        height: 300px;
        font-size: 12px;
    }
}