/* CSS Variables for easy theme customization */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --accent-color: #f59e0b;
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    padding: 2rem 1rem;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    margin-bottom: 2rem;
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.app-header p {
    color: var(--text-muted);
}

.app-main {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed #c7d2fe;
    background-color: #f5f3ff;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: #e0e7ff;
    transform: scale(1.01);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.file-label {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.hidden-input {
    display: none;
}

/* Progress Bar Utilities */
.progress-container {
    margin-top: 1.5rem;
    background: #f3f4f6;
    padding: 1rem;
    border-radius: var(--radius);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    background-color: var(--border-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--primary-color);
    height: 100%;
    transition: width 0.2s ease;
}

/* Queue List Container */
.queue-container {
    margin-top: 2rem;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.queue-header h2 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.file-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    word-break: break-all;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.status-pending { background-color: #e5e7eb; color: #374151; }
.status-processing { background-color: #fef3c7; color: #92400e; }
.status-complete { background-color: #d1fae5; color: #065f46; }

/* Global Buttons styling */
.action-panel {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.btn {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: transparent;
    color: #ef4444;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.btn-secondary:hover {
    background-color: #fee2e2;
}

/* Helper Class */
.hidden {
    display: none !important;
}