/* Main Layout Styles - Extracted from main.php */

/* Base Styles */
body {
    background: #f8fafc;
    color: #374151;
}

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-3px);
    transition: .2s;
}

.category-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transform: translateY(-4px);
}

.vendor-card {
    border-left: 4px solid #0d6efd;
}

/* Button Styles */
.btn-primary {
    background: #1e40af;
    border-color: #1e40af;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-warning {
    background: #059669;
    border-color: #059669;
    color: white;
}

.btn-warning:hover {
    background: #047857;
    border-color: #047857;
    color: white;
}

.btn-success {
    background: #10b981;
    border-color: #10b981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.text-primary {
    color: #1e40af !important;
}

/* Logo and Navigation */
.logo-img {
    height: 45px;
    max-width: 200px;
    object-fit: contain;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-light .navbar-nav .nav-link {
    color: #374151;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #1e40af;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1e40af;
}

/* Mega Menu Styles */
.mega-menu {
    position: static !important;
}

.mega-menu .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 0;
    background: white;
}

.mega-menu-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu-section {
    margin-bottom: 2rem;
}

.mega-menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.mega-menu-title i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background: #f8fafc;
    color: #1e40af;
    text-decoration: none;
    border-color: #e5e7eb;
    transform: translateY(-2px);
}

.mega-menu-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    color: #1e40af;
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-icon {
    background: #1e40af;
    color: white;
    transform: scale(1.05);
}

.mega-menu-text {
    flex: 1;
}

.mega-menu-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.mega-menu-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

.mega-menu-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.mega-menu-cta h5 {
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mega-menu-cta p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mega-menu-cta .btn {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mega-menu-cta .btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
}

@media (max-width: 768px) {
    .mega-menu .dropdown-menu {
        position: absolute !important;
        width: 300px !important;
        left: auto !important;
        right: 0 !important;
    }
    
    .mega-menu-content {
        padding: 1rem;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional User Menu Styles */
.user-profile-dropdown .user-profile-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.user-profile-dropdown .user-profile-btn:hover {
    background: #f8fafc;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.user-info .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.user-info .user-phone {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.user-dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0;
    min-width: 320px;
    margin-top: 8px;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.user-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.dropdown-section {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-section:last-of-type {
    border-bottom: none;
}

.dropdown-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 20px 12px 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}

.user-dropdown-menu .dropdown-item {
    padding: 12px 20px;
    border: none;
    transition: all 0.2s ease;
    color: #374151;
}

.user-dropdown-menu .dropdown-item:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateX(4px);
}

.dropdown-item-content {
    display: flex;
    align-items: center;
}

.dropdown-item-content i {
    width: 20px;
    font-size: 16px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.user-dropdown-menu .dropdown-item:hover .dropdown-item-content i {
    color: #1e40af;
}

.item-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.item-desc {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.2;
}

.logout-item {
    color: #dc2626 !important;
    font-weight: 600;
    margin-top: 8px;
}

.logout-item:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.logout-item i {
    color: #dc2626 !important;
}

/* Professional Login Button */
.login-section .login-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    min-width: 120px;
}

.login-section .login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
    color: white;
}

.login-section .login-btn i {
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-profile-btn {
        min-width: 160px !important;
        padding: 6px 12px !important;
    }
    
    .user-dropdown-menu {
        min-width: 280px !important;
    }
    
    .user-info .user-name {
        font-size: 13px;
    }
    
    .user-info .user-phone {
        font-size: 11px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}