﻿/* Dashboard specific styles */

.navbar-custom {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.section-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control-custom, .form-select-custom {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    color: #000000;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: #CBD5E1;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-gradient {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-tech-dark {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-tech-dark:hover {
    background-color: #e5e5e5;
    border-color: #e5e5e5;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.badge-level {
    background-color: rgba(59, 130, 246, 0.15);
    color: #818cf8;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.badge-semester {
    background-color: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.badge-note { background-color: rgba(16, 185, 129, 0.15); color: #34d399; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; }
.badge-pastpaper { background-color: rgba(59, 130, 246, 0.15); color: #60a5fa; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; }
.badge-assignment { background-color: rgba(16, 185, 129, 0.15); color: #34d399; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; }
.badge-video { background-color: rgba(239, 68, 68, 0.15); color: #f87171; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; }

.note-list-row {
    transition: all 0.3s ease;
}

.note-list-row:hover {
    border-color: #8B5CF6 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.hover-highlight {
    transition: all 0.2s ease;
}
.hover-highlight:hover {
    border-color: #3B82F6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    transform: translateX(5px);
}

.selector-link {
    transition: all 0.2s ease;
}
.selector-link:hover {
    color: var(--text-primary) !important;
}

/* Sidebar & Stats Card Styling */
.sidebar-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.stat-box {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.sidebar-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1rem;
    color: #475569;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(16, 185, 129,0.1), transparent);
    transition: width 0.4s ease;
    z-index: -1;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    color: #10b981;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129,0.2);
    box-shadow: 0 8px 25px rgba(16, 185, 129,0.12);
    transform: translateX(8px);
}

.sidebar-nav-item:hover::before, .sidebar-nav-item.active::before {
    width: 100%;
}

/* Underline animation for sidebar nav items */
.sidebar-nav-item::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-nav-item:hover::after, .sidebar-nav-item.active::after {
    transform: scaleX(1);
}

/* Sidebar Title Premium Hover */
.sidebar-title:hover {
    color: #10b981;
    border-bottom-color: #10b981;
    transform: translateY(-2px);
}

.sidebar-title:hover i {
    transform: rotate(-10deg) scale(1.15);
}

.sidebar-nav-item i {
    font-size: 1.15rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
    color: #94a3b8;
}

.sidebar-nav-item:hover i, .sidebar-nav-item.active i {
    transform: scale(1.2) rotate(5deg);
    color: #10b981 !important;
}

/* Filter buttons styling - Modern Tech B&W */
.btn-filter {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    color: #a1a1aa !important;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-filter:hover, .btn-filter.active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}
/* Make subject folders uppercase for a professional tech look */
#subjectContentAccordion .accordion-button {
    text-transform: uppercase !important;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    background-color: #111111;
    color: #ffffff;
    border-bottom: 1px solid #333;
}
#subjectContentAccordion .accordion-button {
    background-color: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}
#subjectContentAccordion .accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
}
#subjectContentAccordion .accordion-button:not(.collapsed) {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
}
#subjectContentAccordion .accordion-button::after {
    filter: invert(1);
    transition: transform 0.3s ease;
}
#subjectContentAccordion .accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
#subjectContentAccordion .accordion-body {
    background-color: transparent;
    padding-top: 1rem;
}

/* Premium Subject Dropdown Animation */
.subject-header[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}
.subject-header .bi-chevron-down {
    transition: transform 0.3s ease;
}
.premium-list-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.premium-list-item:hover {
    background-color: #1a1a1a !important;
    border-color: #333;
    transform: translateX(5px);
}
#subjectContentAccordion .accordion-body {
    background-color: #0a0a0a;
}

/* Force Monochrome Theme Overrides */
.text-primary, .text-info, .text-warning, .text-danger, .text-success, .text-dark {
    color: #ffffff !important;
}
.text-secondary, .text-muted {
    color: #a1a1aa !important;
}
.bg-primary, .bg-info, .bg-warning, .bg-danger, .bg-success, .bg-dark {
    background-color: #333333 !important;
    color: #ffffff !important;
}
.bg-light {
    background-color: #121212 !important;
    color: #ffffff !important;
    border-color: #27272a !important;
}
.alert-success, .alert-danger, .alert-info, .alert-warning {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}
.accordion-item {
    border-color: #27272a;
    background-color: #121212;
}
.user-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.user-dropdown-menu {
    background-color: #121212;
    border: 1px solid #333;
    border-radius: 12px;
    margin-top: 10px;
}
.user-dropdown-item {
    color: #ffffff;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}
.user-dropdown-item:hover {
    background-color: #27272a;
    color: #ffffff;
}

/* Semesters Selection Specifics */
.hub-container {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.semester-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.semester-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

.semester-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s;
}

.semester-btn:hover i {
    transform: translateX(5px);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Guest Notes Specifics */
.guest-container {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    margin: 4rem auto;
}

.limitations-box {
    border: 1px dashed var(--border-color);
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.note-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.note-item:hover {
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.04);
}

/* Responsive Device Fitting */
@media (max-width: 768px) {
    .section-card, .hub-container, .guest-container, .sidebar-card {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    .form-control-custom, .form-select-custom {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-gradient, .btn-tech-dark, .semester-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
    
    .btn-gradient, .btn-tech-dark {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .category-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .category-tab-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        width: auto;
    }

    .search-container {
        padding: 1.25rem !important;
    }
    
    .guest-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem !important;
    }
    
    .guest-banner .btn {
        width: 100%;
        margin-top: 1rem;
    }

    h1, .display-4 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .navbar-brand .brand-font {
        font-size: 1.3rem !important;
    }
    
    .badge-level, .badge-semester, .badge-format, .badge-note, .badge-pastpaper, .badge-assignment, .badge-video {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .note-card {
        padding: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .hub-container, .guest-container {
        margin: 2rem auto !important;
    }
}



