:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar-brand {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #fff;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: #f5f3ff;
}

.drop-zone.drag-over {
    transform: scale(1.01);
}

.file-list .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.file-list .file-size {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.card {
    border-radius: 12px;
}

.letter-spacing {
    letter-spacing: 0.5em;
}

.progress {
    border-radius: 4px;
}

#fileListItems .remove-btn {
    opacity: 0;
    transition: opacity 0.15s;
}

#fileListItems .list-group-item:hover .remove-btn {
    opacity: 1;
}

@media (max-width: 576px) {
    .drop-zone {
        padding: 2rem 1rem;
    }
}

.countdown-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.countdown-box.countdown-urgent {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border-color: #ea580c;
}

.countdown-box.countdown-critical {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #dc2626;
    animation: countdown-pulse 1s ease-in-out infinite;
}

.countdown-label {
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #b45309;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.countdown-critical .countdown-timer {
    color: #dc2626;
}

.countdown-hint {
    font-size: 0.8rem;
    color: #a16207;
    margin-top: 0.35rem;
}

@keyframes countdown-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.remaining-badge {
    display: inline-block;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.9rem;
}

.remaining-badge.urgent {
    background: #fff7ed;
    color: #c2410c;
}

.remaining-badge.expired {
    background: #f3f4f6;
    color: #6b7280;
}

.manage-table th,
.manage-table td {
    vertical-align: middle;
}
