* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.upload-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.model-selector {
    margin-bottom: 1.5rem;
}

.model-selector h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.toggle-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.toggle-container input[type="radio"] {
    margin-right: 0.5rem;
}

#drop-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 1.5rem;
}

#drop-area.highlight {
    background-color: rgba(52, 152, 219, 0.1);
}

#drop-area.max-limit-reached {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

#drop-area.max-limit-reached p {
    color: #e74c3c;
    font-weight: bold;
}

#drop-area p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #7f8c8d;
}

.file-input-container {
    margin-top: 1rem;
}

#file-select-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#file-select-button:hover {
    background-color: #2980b9;
}

#file-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#remove-file {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#remove-file:hover {
    background-color: #c0392b;
}

#upload-button {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#upload-button:hover {
    background-color: #27ae60;
}

#upload-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

#results {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#results h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

#results-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    white-space: pre-wrap;
}

/* File cards styling */
.file-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.file-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.file-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.file-card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
    word-break: break-word;
    color: #2c3e50;
}

.file-card-status {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Add spinner for processing state */
.status-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-pending {
    background-color: #f39c12;
}

.status-processing {
    background-color: #3498db;
}

.status-completed {
    background-color: #2ecc71;
}

.status-error {
    background-color: #e74c3c;
}

.file-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.file-card-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-card-button:hover {
    background-color: #2980b9;
}

.file-error-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #fde2e2;
    border-radius: 4px;
    color: #e74c3c;
    font-size: 0.9rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#download-all-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#download-all-button:hover {
    background-color: #2980b9;
}

.file-size {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    #drop-area {
        padding: 1.5rem;
    }
    
    .file-card {
        padding: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #download-all-button {
        margin-top: 0.75rem;
    }
}

#selected-files {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

#selected-files li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.remove-file-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-file-btn:hover {
    background-color: #c0392b;
}

/* File notification */
.file-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #f39c12;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.9rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
    max-width: 90%;
}

.file-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
} 