:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --dark-color: #0f172a;
    --darker-color: #0a0f1c;
    --light-color: #f8fafc;
    --terminal-bg: #1e293b;
    --terminal-green: #10b981;
    --terminal-blue: #3b82f6;
    --terminal-purple: #8b5cf6;
    --terminal-yellow: #f59e0b;
    --terminal-pink: #ec4899;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker-color);
    color: #cbd5e1;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Navigation */
.navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--darker-color), transparent);
}

.glow-text {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--accent-color) !important;
}

/* Terminal */
.terminal-container {
    background-color: var(--terminal-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    z-index: -1;
}

.terminal-header {
    background-color: rgba(30, 41, 59, 0.9);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform 0.2s;
}

.terminal-button:hover {
    transform: scale(1.1);
}

.terminal-button.close {
    background-color: #ef4444;
}

.terminal-button.minimize {
    background-color: #f59e0b;
}

.terminal-button.maximize {
    background-color: #10b981;
}

.terminal-title {
    margin-left: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 30px;
    min-height: 350px;
}

.terminal-line {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.6s; }
.terminal-line:nth-child(3) { animation-delay: 1s; }
.terminal-line:nth-child(4) { animation-delay: 1.4s; }
.terminal-line:nth-child(5) { animation-delay: 1.8s; }
.terminal-line:nth-child(6) { animation-delay: 2.2s; }
.terminal-line:nth-child(7) { animation-delay: 2.6s; }
.terminal-line:nth-child(8) { animation-delay: 3s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.terminal-prompt {
    color: var(--terminal-green);
    margin-right: 12px;
    font-weight: 600;
    user-select: none;
}

.terminal-command {
    color: #e2e8f0;
}

.terminal-output {
    color: #94a3b8;
    margin-left: 30px;
    margin-top: 5px;
    font-style: italic;
}

.code-comment {
    color: #64748b;
}

.code-keyword {
    color: var(--terminal-pink);
}

.code-function {
    color: var(--terminal-blue);
}

.code-string {
    color: var(--terminal-green);
}

.code-operator {
    color: var(--terminal-yellow);
}

.code-class {
    color: var(--terminal-purple);
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 20px;
    background-color: var(--terminal-green);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 3px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(20px);
    }
    75% {
        transform: translateY(-30px) translateX(-10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #f8fafc;
    font-weight: 700;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.center-title {
    text-align: center;
}

.center-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background-color: var(--darker-color);
    padding: 5rem 0;
}

.about-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stat-number {
    color: #f8fafc;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.activities-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2rem;
}

.activities-title {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.activity-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.activity-content h6 {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.activity-content p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Departments Section */
.departments-section {
    background-color: var(--dark-color);
    padding: 5rem 0;
}

.department-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.department-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.department-card:hover::before {
    opacity: 1;
}

.department-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.department-title {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.department-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.department-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.department-tag {
    background-color: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Announcements Section */
.announcements-section {
    background-color: var(--darker-color);
    padding: 5rem 0;
}

.announcement-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.announcement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.card-header {
    padding: 1.2rem 1.2rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.announcement-badge {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.announcement-date {
    color: #94a3b8;
    font-size: 0.85rem;
}

.card-body {
    padding: 0 1.2rem 1.2rem;
}

.announcement-title {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.announcement-preview {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 70px;
}

.announcement-footer {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.announcement-author {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.85rem;
}

.card-footer {
    padding: 0.8rem 1.2rem;
    background-color: transparent;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.announcement-link {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.empty-announcements {
    text-align: center;
    padding: 4rem 2rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    color: #f8fafc;
    margin-bottom: 0.8rem;
}

.empty-text {
    color: #94a3b8;
    margin-bottom: 0;
}

.view-all-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-brand {
    color: #f8fafc;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-section {
    margin-bottom: 2rem;
}

.social-title {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.footer-tagline {
    color: #f8fafc;
    font-weight: 600;
    font-style: italic;
    margin-top: 1rem;
}

.footer-heading {
    color: #f8fafc;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.footer-divider {
    border-color: #475569;
    margin: 2rem 0;
    opacity: 0.5;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .terminal-body {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .department-card,
    .announcement-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Announcements Section Styles */
.announcement-card {
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.announcement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.announcement-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.announcement-author {
    color: var(--accent-color);
    font-weight: 500;
}

/* Department Cards */
.department-card {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.department-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.department-card:hover::before {
    opacity: 1;
}

.department-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #f8fafc;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}


/* Enhanced Navigation Styles */
.navbar {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.98) !important;
    padding: 0.5rem 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.brand-text {
    color: white !important;
    font-weight: 800;
    position: relative;
    padding-bottom: 5px;
}

/* Purple underline effect */
.brand-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease;
}
.navbar-brand:hover .brand-text::after {
    transform: scaleX(0.8);
}

.nav-link-custom {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link-custom:hover {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.nav-link-custom.active {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
}

.nav-link-custom.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Login Button */
.btn-login {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

/* Mobile Menu */
.navbar-toggler {
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Mobile Menu Items */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        background-color: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1.5rem;
        border: 1px solid rgba(99, 102, 241, 0.2);
    }
    
    .nav-link-custom {
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0.5rem 0 !important;
    }
    
    .btn-login {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Scroll detection for navbar */
.navbar {
    transition: all 0.3s ease-in-out;
}

/* Add icons to mobile menu */
@media (max-width: 991.98px) {
    .nav-link-custom i {
        width: 20px;
        text-align: center;
        margin-right: 10px;
    }
}

/* Hover effect for navbar items */
.nav-link-custom i {
    transition: transform 0.3s ease;
}

.nav-link-custom:hover i {
    transform: translateY(-1px);
}

/* Active state animation */
.nav-link-custom.active i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth transition for navbar collapse */
.collapsing {
    transition: height 0.35s ease;
}

/* main.css - Centralized styles for main templates */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --dark-color: #0f172a;
    --darker-color: #0a0f1c;
    --light-color: #f8fafc;
    --card-bg: #1e293b;
    --terminal-green: #10b981;
    --terminal-blue: #3b82f6;
    --terminal-purple: #8b5cf6;
    --terminal-yellow: #f59e0b;
    --terminal-pink: #ec4899;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker-color);
    color: #cbd5e1;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--dark-color);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-brand i {
    color: var(--primary-color);
}

.sidebar-menu {
    padding: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.menu-item:hover, .menu-item.active {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background-color: rgba(99, 102, 241, 0.1);
    margin: 1.5rem 1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

/* Top Bar */
.top-bar {
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Cards */
.card-custom {
    background-color: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.card-header-custom {
    background-color: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dark-color), var(--card-bg));
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.stat-number {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Tables */
.table-custom {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.table-custom thead {
    background-color: rgba(15, 23, 42, 0.5);
}

.table-custom th {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1rem;
}

.table-custom td {
    color: var(--text-secondary);
    padding: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

/* Course Cards */
.course-card {
    height: 100%;
    overflow: hidden;
}

.course-thumbnail {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.course-category {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Profile */
.profile-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--dark-color), var(--card-bg));
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.profile-info-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Forms */
.form-control-custom {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control-custom:focus {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.form-label-custom {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Badges */
.badge-custom {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
}

.badge-featured {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.border-gradient {
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)) 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Flash Messages */
.alert-custom {
    background-color: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    border-color: var(--accent-color);
    background-color: rgba(16, 185, 129, 0.1);
}

.alert-error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

