/* Base Styles */
body { font-family: 'Inter', sans-serif; min-height: 100vh; display: flex; flex-direction: column; background-color: #f9fafb; color: #131b2e; }
main { flex: 1; }

.dark { background-color: #131b2e; color: #eef0ff; }
.dark body { background-color: #131b2e; color: #eef0ff; }

/* Tab Logic */
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-button.active {
    background-color: #004ac6 !important;
    color: #ffffff !important;
}

#mobileMenu { display: none; }
#mobileMenu.open { display: block; }

header { position: sticky; top: 0; z-index: 1000; }
header, footer { display: none !important; }

/* Ad Banners */
#leftAdBanner, #rightAdBanner { position: fixed; top: 120px; width: 300px; height: 250px; background-color: #e2e7ff; border: 1px solid #c3c6d7; display: flex; align-items: center; justify-content: center; z-index: 1000; border-radius: 8px;}
#leftAdBanner { left: calc(50% - 768px); }
#rightAdBanner { right: calc(50% - 768px); }
@media (max-width: 1024px) { #leftAdBanner, #rightAdBanner { display: none; } }

/* Format Options State */
.format-option {
    background-color: #d1d5db;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #000;
}

.format-option:hover {
    background-color: #c4c7c9;
}

.format-option.selected {
    border-color: #004ac6;
    background-color: #eef0ff;
    color: #00174b;
    font-weight: 600;
}

/* Bulk Queue Styles */
.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #c3c6d7;
}
.queue-item:last-child {
    border-bottom: none;
}
.queue-item-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.queue-item-name {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.queue-item-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Status Colors mapped to new palette */
.status-pending { background-color: #fff3cd; color: #856404; }
.status-processing { background-color: #dbe1ff; color: #004ac6; }
.status-completed { background-color: #d4edda; color: #155724; }
.status-error { background-color: #ffdad6; color: #ba1a1a; }

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.status-indicator.pending { background-color: #ffc107; }
.status-indicator.processing { background-color: #004ac6; }
.status-indicator.completed { background-color: #198754; }
.status-indicator.error { background-color: #ba1a1a; }

/* Messages */
.message.error {
    background-color: #ffdad6;
    color: #ba1a1a;
    border: 1px solid #ba1a1a;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #155724;
}

/* Slider Overrides */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #004ac6;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #004ac6;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Drag and Drop Highlight */
.drop-area.highlight {
    border-color: #004ac6;
    background-color: #dbe1ff;
}