/* ============================================ */
/* NAVBAR STATIC CSS - EXTERNAL FILE */
/* VERSION 8.0 - PC + MOBILE OPTIMIZED */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body aur html ki margins hata di */
body, html {
    margin: 0;
    padding: 0;
}

/* Top fixed area - margin hata diya */
.top-fixed-area {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* ✅ Main Navbar - FIXED */
.navbar {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Navbar scroll effect */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar inner container - PC Default */
.navbar .navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height 0.3s ease;
    height: 55px;
    min-height: 55px;
}

/* ===== LOGO - RED GRADIENT MONOGRAM ===== */
.navbar-logo-text {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease;
}

.navbar-logo-text:hover {
    transform: scale(1.02);
}

/* ✅ PMT - Dark to Light Red Gradient */
.logo-pmt {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #8b0000 0%, #dc3545 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-full {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: -0.3px;
}

.logo-full span {
    color: #dc3545;
    font-weight: 700;
}

/* ===== MENU ===== */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.navbar-nav li a {
    text-decoration: none;
    font-weight: 500;
    color: #4a5568;
    padding: 6px 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 13px;
}

.navbar-nav li a:hover {
    color: #667eea;
}

.navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: #667eea;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav li a:hover::after {
    width: 70%;
}

/* ===== BUTTONS ===== */
.navbar-btn {
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 40px;
}

.navbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.navbar-btn:active {
    transform: scale(0.98);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-icon:hover {
    transform: scale(1.05);
}

.profile-icon .profile-letter {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: #667eea;
}

.profile-icon i {
    font-size: 11px;
    color: #4a5568;
    transition: transform 0.3s ease;
}

.profile-dropdown:hover .profile-icon i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    min-width: 280px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown Header */
.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
}

.dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.dropdown-header-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.dropdown-header-info p {
    font-size: 12px;
    color: #718096;
    margin: 4px 0 0;
}

/* Dropdown Items */
.dropdown-content a, 
.dropdown-content label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    position: relative;
    color: #4a5568;
}

.dropdown-content a:hover, 
.dropdown-content label:hover {
    background: #f7fafc;
    padding-left: 20px;
}

.dropdown-content i {
    width: 20px;
    color: #667eea;
    transition: transform 0.2s ease;
}

.dropdown-content a:hover i,
.dropdown-content label:hover i {
    transform: scale(1.1);
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 6px 0;
}

/* Admin Button */
.admin-btn {
    margin: 8px 12px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.admin-btn i {
    color: white !important;
}

/* Logout Button */
.logout-btn {
    color: #e53e3e !important;
}

.logout-btn i {
    color: #e53e3e !important;
}

.logout-btn:hover {
    background: #fff5f5 !important;
}

/* ============================================ */
/* TABLET RESPONSIVE (992px se neeche) */
/* ============================================ */

@media (max-width: 992px) {
    .navbar .navbar-inner {
        padding: 0 16px;
        height: 50px;
        min-height: 50px;
    }
    
    .logo-pmt {
        font-size: 22px;
    }
    
    .logo-full {
        font-size: 14px;
    }
    
    .navbar-nav li a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .navbar-btn {
        padding: 5px 14px;
        font-size: 12px;
    }
}

/* ============================================ */
/* MOBILE RESPONSIVE (768px se neeche) */
/* ============================================ */

@media (max-width: 768px) {
    
    .navbar .navbar-inner {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 0px 10px !important;
        height: 30px !important;
        min-height: 30px !important;
        overflow: visible !important;
    }
    
    .navbar-logo-text {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        flex-shrink: 1 !important;
    }
    
    .logo-pmt {
        font-size: 14px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }
    
    .logo-full {
        display: inline-block !important;
        font-size: 8px !important;
        white-space: nowrap !important;
        flex-shrink: 1 !important;
    }
    
    .user-section {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    
    .navbar-btn {
        padding: 3px 8px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }
    
    .profile-icon img {
        width: 22px !important;
        height: 22px !important;
    }
    
    .profile-icon span {
        font-size: 18px !important;
    }
    
    .dropdown-content {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        animation: slideUp 0.3s ease !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .top-fixed-area {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    
    /* ✅ Navbar - Ads Banner ke neeche */
    .navbar {
        top: 40px !important;
        margin-top: 0px !important;
        position: sticky !important;
    }
}

/* ============================================ */
/* SMALL MOBILE (480px se neeche) */
/* ============================================ */

@media (max-width: 480px) {
    
    .navbar .navbar-inner {
        height: 26px !important;
        min-height: 26px !important;
        gap: 3px !important;
        padding: 0px 8px !important;
    }
    
    .navbar-logo-text {
        gap: 2px !important;
    }
    
    .logo-pmt {
        font-size: 12px !important;
    }
    
    .logo-full {
        font-size: 7px !important;
    }
    
    .navbar-btn {
        padding: 2px 6px !important;
        font-size: 8px !important;
    }
    
    .profile-icon span {
        font-size: 16px !important;
    }
    
    .profile-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .navbar {
        top: 40px !important;
    }
}

/* ============================================ */
/* EXTRA SMALL (380px se neeche) */
/* ============================================ */

@media (max-width: 380px) {
    .logo-full {
        display: none !important;
    }
    
    .logo-pmt {
        font-size: 14px !important;
    }
    
    .navbar-logo-text {
        max-width: 60% !important;
    }
    
    .navbar-btn {
        padding: 2px 5px !important;
        font-size: 7px !important;
    }
    
    .navbar .navbar-inner {
        height: 24px !important;
        min-height: 24px !important;
    }
    
    .navbar {
        top: 35px !important;
    }
}

/* ============================================ */
/* PC - EXTRA THIN NAVBAR (OPTIONAL) */
/* Agar PC par aur patla chahiye toh yeh add karo */
/* ============================================ */

@media screen and (min-width: 1200px) {
    .navbar .navbar-inner {
        height: 45px !important;
        min-height: 45px !important;
        padding: 0 30px !important;
    }
    
    .logo-pmt {
        font-size: 20px !important;
    }
    
    .logo-full {
        font-size: 12px !important;
    }
    
    .navbar-nav li a {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    
    .navbar-btn {
        padding: 4px 12px !important;
        font-size: 11px !important;
    }
    
    .profile-icon .profile-letter {
        font-size: 14px !important;
    }
    
    .profile-icon i {
        font-size: 10px !important;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .navbar {
        position: static;
        box-shadow: none;
    }
    
    .profile-dropdown,
    .navbar-btn {
        display: none;
    }
}