/* ===================== NAVBAR STYLES ===================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================== TOAST STYLES ===================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--bg-card, #16213e);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary, #eaeaea);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary, #a0a0a0);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--accent-green, #00ff88);
}

.toast-success .toast-icon {
    color: var(--accent-green, #00ff88);
}

.toast-error {
    border-left: 4px solid #ff4757;
}

.toast-error .toast-icon {
    color: #ff4757;
}

.toast-warning {
    border-left: 4px solid #ffa502;
}

.toast-warning .toast-icon {
    color: #ffa502;
}

.toast-info {
    border-left: 4px solid var(--accent-cyan, #00d4ff);
}

.toast-info .toast-icon {
    color: var(--accent-cyan, #00d4ff);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    backdrop-filter: blur(4px);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan, #00d4ff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    color: var(--text-primary, #eaeaea);
    font-size: 1rem;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    backdrop-filter: blur(4px);
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: var(--bg-card, #16213e);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.2s;
}

.confirm-overlay.show .confirm-dialog {
    transform: scale(1);
}

.confirm-title {
    font-size: 1.25rem;
    color: var(--text-primary, #eaeaea);
    margin-bottom: 0.75rem;
}

.confirm-message {
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-cancel {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: #ff4757 !important;
    color: white !important;
}

.btn-danger:hover {
    background: #ff6b7a !important;
}

@media (max-width: 480px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .toast {
        transform: translateY(-120%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .confirm-dialog {
        padding: 1.5rem;
    }
    
    .confirm-actions {
        flex-direction: column-reverse;
    }
    
    .confirm-actions .btn {
        width: 100%;
    }
}

.drop-zone {
    border: 2px dashed var(--accent-cyan, #00d4ff);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.05);
}

.drop-zone.drag-active {
    border-color: var(--accent-green, #00ff88);
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.drop-zone-text {
    color: var(--text-secondary, #a0a0a0);
    margin-bottom: 1rem;
}

.drop-zone-text strong {
    color: var(--accent-cyan, #00d4ff);
}

.drop-zone input[type="file"] {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 2px solid var(--accent-cyan, #00d4ff);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-cyan, #00d4ff);
    color: #000;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

[role="button"] {
    cursor: pointer;
}

/* Unified toolbar styling */
.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.toolbar .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.toolbar .search-box {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary, #eaeaea);
    font-size: 0.95rem;
}

.toolbar .search-box:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-cyan, #00d4ff);
}

.toolbar .search-container {
    display: flex;
    flex: 1;
    min-width: 200px;
    gap: 0.5rem;
    align-items: center;
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
    white-space: nowrap;
}

.filter-select,
.filter-date {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    color: var(--text-primary, #eaeaea);
    font-size: 0.85rem;
}

.filter-select:focus,
.filter-date:focus {
    outline: none;
    border-color: var(--accent-cyan, #00d4ff);
}

.clear-filters-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,71,87,0.2);
    border: 1px solid rgba(255,71,87,0.3);
    border-radius: 8px;
    color: #ff4757;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: rgba(255,71,87,0.3);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
