/* Bootstrap Toast Custom Styling */
.toast {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast.bg-success {
    background: rgba(34, 197, 94, 0.95) !important;
}

.toast.bg-danger {
    background: rgba(239, 68, 68, 0.95) !important;
}

.toast.bg-warning {
    background: rgba(251, 191, 36, 0.95) !important;
}

.toast.bg-info {
    background: rgba(59, 130, 246, 0.95) !important;
}

/* Bootstrap Modal Custom Styling */
.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

.btn-close {
    filter: invert(1);
}

/* Reader Mode - Hide all actions */
body.reader-mode .actions-menu,
body.reader-mode .btn-primary,
body.reader-mode .year-tabs button:last-child,
body.reader-mode .group-btn {
    display: none !important;
}

/* Hide Actions column header and cells with actions-menu only */
body.reader-mode th:has(.actions-menu),
body.reader-mode th:nth-last-child(1):not([colspan]),
body.reader-mode td:has(.actions-menu) {
    display: none !important;
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 260px;
    /* Position after sidebar width */
    z-index: 1001;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #60a5fa;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.sidebar-toggle:active {
    transform: translateY(0);
}

/* Move toggle button when sidebar is collapsed */
.sidebar-toggle.sidebar-closed {
    left: 1rem;
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
}

.main-content.expanded {
    margin-left: 0 !important;
}