/* ============================================================================
   TikTok Downloader Pro - Custom Styles
   ============================================================================ */

/* Root Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    line-height: 1.6;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Authentication Pages */
.auth-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-brand-side {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-brand-content {
    max-width: 500px;
    width: 100%;
}

.auth-form-container {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container .card {
    max-width: 500px;
    width: 100%;
    border: none;
    border-radius: 1rem;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: #f9fafb;
    position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-style: solid;
    background-color: rgba(99, 102, 241, 0.1);
}

.upload-content {
    pointer-events: none;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    pointer-events: none;
}

/* Video Cards */
.video-card {
    transition: var(--transition);
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-thumbnail {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-btn {
    opacity: 1;
}

.video-stats .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Progress Bar */
.progress {
    height: 1rem;
    border-radius: var(--border-radius);
    background-color: #e5e7eb;
}

.progress-bar {
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Stats */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.stats-card .card-body {
    padding: 2rem;
}

.stats-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Tables */
.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: var(--dark-color);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.input-group-text {
    border-radius: var(--border-radius);
    background-color: #f8fafc;
    border: 1px solid #d1d5db;
}

/* Modals */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

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

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 0.5rem 1rem 0.25rem;
}

/* Pagination */
.pagination {
    border-radius: var(--border-radius);
}

.page-link {
    border-radius: var(--border-radius);
    margin: 0 2px;
    border: 1px solid #d1d5db;
    color: var(--dark-color);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* TAMBAHKAN CSS INI ke file public/css/style.css */

/* Video Duration Badges */
.video-duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.video-duration-small {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 2;
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.recent-download-card:hover .video-play-overlay,
.popular-video-item:hover .video-play-overlay {
    opacity: 1;
}

/* Modal Improvements */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* Recent Download Cards */
.recent-download-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
}

.recent-download-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* Popular Video Items */
.popular-video-item {
    transition: background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.popular-video-item:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Video Stats Badges */
.video-stats .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* Upload Area Enhancements */
.upload-area {
    position: relative;
    overflow: hidden;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.upload-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.upload-content button {
    pointer-events: all;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* Button Group Improvements */
.btn-group-sm .btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

/* Progress Bar Enhancements */
.progress {
    height: 1.2rem;
    background-color: #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .recent-download-card .card-body {
        padding: 1rem;
    }
    
    .video-stats .badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .btn-group-sm .btn {
        padding: 0.15rem 0.4rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .recent-download-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .recent-download-card .position-relative {
        margin-bottom: 0.5rem;
        align-self: center;
    }
    
    .recent-download-card .flex-grow-1 {
        flex-grow: 0;
        width: 100%;
    }
    
    .video-duration-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem;
    }
}

/* Error States */
.error-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Success States */
.success-state {
    text-align: center;
    padding: 2rem;
    color: #198754;
}

.success-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .modal-header, .modal-footer {
        border-color: #333;
    }
    
    .bg-light {
        background-color: #2d2d2d !important;
        color: #ffffff;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
    
    .recent-download-card {
        background-color: #2d2d2d;
        border-color: #333;
        color: #ffffff;
    }
    
    .recent-download-card:hover {
        background-color: #3d3d3d;
        border-color: var(--primary-color);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form-container {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .video-thumbnail {
        height: 150px;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stats-card .card-body {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Dark Theme */
.dark-theme {
    background-color: #111827;
    color: #f9fafb;
}

.dark-theme .card {
    background-color: #1f2937;
    color: #f9fafb;
}

.dark-theme .navbar-light {
    background-color: #1f2937 !important;
}

.dark-theme .navbar-light .navbar-brand,
.dark-theme .navbar-light .navbar-nav .nav-link {
    color: #f9fafb;
}

.dark-theme .form-control {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-theme .form-control:focus {
    background-color: #374151;
    border-color: var(--primary-color);
    color: #f9fafb;
}

.dark-theme .table {
    color: #f9fafb;
}

.dark-theme .table thead th {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-theme .dropdown-menu {
    background-color: #1f2937;
    border-color: #374151;
}

.dark-theme .dropdown-item {
    color: #f9fafb;
}

.dark-theme .dropdown-item:hover {
    background-color: #374151;
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.dark-theme .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.dark-theme ::-webkit-scrollbar-track {
    background: #374151;
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .loading-overlay {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Enhanced Navigation Styles */
.navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #fff !important;
}

.navbar-brand i {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-right: 0.75rem;
    font-size: 1.5em;
}

/* Gradient animation for TikTok icon */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced primary navbar */
.navbar-dark.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6366f1 100%) !important;
    position: relative;
}

.navbar-dark.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Enhanced dropdown styles */
.dropdown-menu {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    opacity: 0.8;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    padding: 0.75rem 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.dropdown-divider {
    margin: 0.75rem 1rem;
    opacity: 0.3;
}

/* Enhanced toggler for mobile */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User profile section enhancement */
.navbar-nav .dropdown-toggle::after {
    display: none;
}

.navbar-nav .nav-link.dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

.navbar-nav .nav-link.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Light navbar enhancement */
.navbar-light {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-light .navbar-brand {
    color: #1f2937 !important;
}

.navbar-light .nav-link {
    color: #4b5563 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-light .nav-link:hover {
    color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Sticky navbar enhancement */
.sticky-top {
    z-index: 1030;
}

.navbar.sticky-top {
    transition: all 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand i {
        font-size: 1.3em;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand i {
        font-size: 1.2em;
        margin-right: 0.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Animation for collapsible menu */
.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-collapse.collapsing {
    transition: height 0.35s ease;
}

/* Enhanced focus states for accessibility */
.navbar-nav .nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.dropdown-item:focus {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}

/* Additional Smooth Animations */
.fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(99, 102, 241, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Loading state for navbar */
.navbar.loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: loadingBar 2s linear infinite;
}

@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Pulse effect for notifications */
.navbar .notification-pulse {
    position: relative;
}

.navbar .notification-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Improved brand hover effect */
.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Navbar search enhancement (if needed) */
.navbar-search {
    position: relative;
    max-width: 300px;
}

.navbar-search .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 2rem;
    padding-left: 2.5rem;
}

.navbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* Dark mode toggle (if implemented) */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .navbar-brand,
    .nav-link,
    .dropdown-item {
        transition: none;
        animation: none;
    }
    
    .navbar-brand i {
        animation: none;
    }
}