/* ===== NAVBAR CRITICAL STYLES ===== */
:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --dark: #2b2d42;
    --light: #f8f9fa;
}

/* Navbar Base Styles */
.dhimaniya-navbar {
    font-weight: 500 !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 0 !important;
    z-index: 1050 !important;
}

.dhimaniya-navbar .navbar-brand {
    display: flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: white !important;
}

.dhimaniya-navbar .brand-logo {
    height: 40px !important;
    width: auto !important;
    margin-right: 10px !important;
    border-radius: 5px !important;
}

.dhimaniya-navbar .nav-link {
    color: rgb(255 255 255 / 95%) !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
}

/* CRITICAL DROPDOWN FIXES - MUST BE IN style.css */
.dhimaniya-navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    z-index: 1060 !important;
    display: none !important;
    min-width: 200px !important;
}

.dhimaniya-navbar .dropdown-menu.show {
    display: block !important;
}

.dhimaniya-navbar .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dhimaniya-navbar .dropdown-item {
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    color: var(--dark) !important;
    margin: 2px 0 !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
}

.dhimaniya-navbar .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    transform: translateX(5px) !important;
}

/* Navbar Search Form */
.dhimaniya-navbar .form-control {
    border-radius: 25px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s ease !important;
    min-width: 250px !important;
}

.dhimaniya-navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dhimaniya-navbar .btn-outline-light {
    border-radius: 25px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

/* Cart Badge */
.dhimaniya-navbar .cart-badge {
    background: linear-gradient(135deg, var(--danger), #e63946) !important;
    border: 2px solid white !important;
    font-size: 0.7rem !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* User Dropdown Styles */
.dhimaniya-navbar .user-dropdown .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    gap: 0.5rem !important;
}

.dhimaniya-navbar .user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--warning), var(--danger)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    margin-right: 8px !important;
}

.dhimaniya-navbar .user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
}

.dhimaniya-navbar .user-name {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: white !important;
}

.dhimaniya-navbar .user-email {
    font-size: 0.75rem !important;
    opacity: 0.9 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile responsive fixes */
@media (max-width: 991.98px) {
    .dhimaniya-navbar .navbar-collapse {
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        padding: 1rem !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
    }
    
    .dhimaniya-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        box-shadow: none !important;
    }
    
    .dhimaniya-navbar .form-control {
        min-width: auto !important;
        margin: 0.5rem 0 !important;
        width: 100% !important;
    }
    
    .dhimaniya-navbar .user-info {
        display: none !important;
    }
}

/* ===== ENHANCED GRADIENT STYLES ===== */
.custom-color {
    background: radial-gradient(circle, rgba(112, 192, 255, 1) 0%, rgba(98, 153, 254, 1) 24%, rgba(123, 124, 255, 1) 49%, rgba(97, 124, 255, 1) 86%, rgba(36, 24, 255, 1) 100%);
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-method {
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
    background: #e9ecef;
}

/* ===== FOOTER STYLES ===== */
footer.custom-color {
    background: radial-gradient(circle, rgba(112, 192, 255, 1) 0%, rgba(98, 153, 254, 1) 24%, rgba(123, 124, 255, 1) 49%, rgba(97, 124, 255, 1) 86%, rgba(36, 24, 255, 1) 100%) !important;
}

/* Footer Link Hover Effects */
footer a.text-light:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    opacity: 1 !important;
}

footer a.text-success:hover {
    color: #28a745 !important;
    text-decoration: underline !important;
}

/* Social Media Icons */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.2);
    color: #ffffff !important;
}

/* Footer Headings */
footer h5, footer h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer Lists */
footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Contact Info Links */
footer .contact-info a {
    display: block;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

/* Ensure Font Awesome icons are properly sized */
footer .fa-lg {
    font-size: 1.5rem;
}

footer .fa-2x {
    font-size: 1.5rem;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    footer .container {
        text-align: center;
    }
    
    footer .social-links {
        justify-content: center;
        display: flex;
        margin-top: 1rem;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* ===== SUPPORT SECTION STYLES ===== */
.support-section {
    border-left: 4px solid #3a86ff;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
}

/* ===== LIGHT E-COMMERCE THEME ===== */

/* Light background like Amazon/Flipkart */
.orders-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    min-height: 100vh;
    padding: 30px 0;
}

/* Header with brand colors */
.orders-container .container > .row:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* White text for header only */
.orders-container .container > .row:first-child .text-white {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.orders-container .container > .row:first-child .opacity-75 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark text for main content */
.orders-container .text-white:not(.orders-container .container > .row:first-child .text-white) {
    color: #2c3e50 !important;
    text-shadow: none;
}

.orders-container .opacity-75:not(.orders-container .container > .row:first-child .opacity-75) {
    color: #5d6d7e !important;
}

/* Clean white order cards */
.order-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Order header with brand gradient */
.order-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.order-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.order-id {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white !important;
}

.order-date {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Status badges */
.order-status {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: white;
    display: inline-block;
}

.status-order-placed { 
    background: linear-gradient(45deg, #17a2b8, #138496);
}
.status-order-confirmed { 
    background: linear-gradient(45deg, #28a745, #1e7e34);
}
.status-shipped { 
    background: linear-gradient(45deg, #f39c12, #e67e22);
}
.status-out-for-delivery { 
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}
.status-delivered { 
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}
.status-cancelled { 
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Products Section with Left Spacing */
.order-products {
    padding: 0;
}

.order-products > .px-4.pt-4 {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    background: #ffffff;
}

.product-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-item:hover .product-image {
    border-color: #667eea;
    transform: scale(1.05);
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.product-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.product-meta span {
    margin-right: 20px;
}

.product-meta strong {
    color: #495057;
}

/* Customer Information with Left Spacing */
.customer-info {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 20px 30px;
    border: 1px solid #e9ecef;
}

.customer-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.customer-details {
    font-size: 0.95rem;
    color: #5d6d7e;
    line-height: 1.5;
}

.customer-details .row > div {
    margin-bottom: 10px;
    padding-left: 0;
}

.customer-details strong {
    color: #2c3e50;
    min-width: 80px;
    display: inline-block;
}

.customer-details i {
    color: #667eea;
    width: 20px;
    margin-right: 10px;
}

/* Order Actions with Left Spacing */
.order-actions {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.order-actions .row {
    margin-left: 0;
    margin-right: 0;
}

.order-actions .d-flex {
    padding-left: 0;
}

.status-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
    background: #ffffff;
    padding: 10px 15px;
    margin-right: 10px;
}

.status-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-update {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    white-space: nowrap;
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #229c40, #1cb489);
    color: white;
}

.btn-cancel {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    white-space: nowrap;
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, #c82333, #d91a7a);
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h3 {
    color: #2c3e50 !important;
    font-weight: 700;
}

.empty-state p {
    color: #5d6d7e !important;
}

.empty-icon {
    width: 180px;
    height: 180px;
    opacity: 0.7;
    margin-bottom: 30px;
    filter: none;
}

/* Payment badge */
.payment-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

/* Stats cards */
.stats-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.stats-card.active {
    border: 2px solid #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.stats-card:hover::after {
    left: 100%;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    margin: 0;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-number {
    transform: scale(1.1);
}

.stats-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-label {
    color: #667eea;
}

.stats-icon {
    color: #667eea;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Contact Page */
    .contact-method {
        text-align: center;
    }
    
    .support-links .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Orders Page */
    .orders-container {
        padding: 15px 0;
    }
    
    .order-card {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .order-header {
        padding: 15px 20px;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    .product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .customer-info {
        margin: 15px 20px;
        padding: 15px 20px;
    }
    
    .order-actions {
        padding: 15px 20px;
        text-align: center;
    }
    
    .order-actions .d-flex {
        flex-direction: column;
        padding-left: 0;
    }
    
    .order-actions .d-flex > * {
        margin-bottom: 10px;
        width: 100%;
    }
    
    .status-select {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .stats-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.order-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating animation for stats */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stats-card:hover .stats-number {
    animation: float 2s ease-in-out infinite;
}

/* ===== FORM STYLES ===== */
label {
  font-weight: bold;
}

/* Style for required field marker */
.required {
  color: red;
  font-size: 14px;
}

/* Error message */
.text-danger {
  color: red;
  font-size: 0.9em;
}

/* Input focus effect */
input:focus, select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
  outline: none;
}

/* Submit & Reset Buttons */
#submit-btn .btn {
  transition: all 0.3s ease;
}

#submit-btn .btn:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Form card */
.card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Input spacing */
.form-control {
  margin-top: 5px;
}
/* ===== CLEAN DROPDOWN FIX ===== */
/* Only target navbar dropdowns specifically */
.dhimaniya-navbar .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    z-index: 1060 !important;
    min-width: 200px !important;
}

.dhimaniya-navbar .dropdown-menu.show {
    display: block !important;
}

.dhimaniya-navbar .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

/* Restore original wishlist/cart button styles */
.dhimaniya-navbar .quick-action-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
}

.dhimaniya-navbar .cart-badge {
    background: linear-gradient(135deg, var(--danger), #e63946) !important;
    border: 2px solid white !important;
    font-size: 0.7rem !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure user dropdown stays in line */
.dhimaniya-navbar .user-dropdown .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    gap: 0.5rem !important;
}

.dhimaniya-navbar .user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--warning), var(--danger)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    margin-right: 8px !important;
}

.dhimaniya-navbar .user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
}
/* ===== RESTORE WISHLIST & CART POSITIONING ===== */
.dhimaniya-navbar .quick-actions {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.dhimaniya-navbar .quick-action-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
}

.dhimaniya-navbar .quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Cart badge positioning */
.dhimaniya-navbar .quick-action-btn.position-relative {
    position: relative !important;
}


/* User dropdown positioning */
.dhimaniya-navbar .user-dropdown {
    position: relative !important;
}

.dhimaniya-navbar .user-dropdown .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    border: none !important;
}

.dhimaniya-navbar .user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--warning), var(--danger)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

.dhimaniya-navbar .user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Ensure navbar items stay in line */
.dhimaniya-navbar .navbar-collapse {
    flex-grow: 1 !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.dhimaniya-navbar .navbar-nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

.dhimaniya-navbar .d-flex {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Mobile responsive fixes */
@media (max-width: 991.98px) {
    .dhimaniya-navbar .quick-actions {
        justify-content: center !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }
    
    .dhimaniya-navbar .user-info {
        display: none !important;
    }
    
    .dhimaniya-navbar .admin-user-info {
        margin: 0.5rem 0 !important;
        justify-content: center !important;
        width: 100% !important;
    }
}
/* ===== COMPACT USER DROPDOWN FIX ===== */
.dhimaniya-navbar .user-dropdown .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.3rem 0.6rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    gap: 0.3rem !important;
    margin: 0 !important;
    border: none !important;
    max-width: 180px !important;
    overflow: hidden !important;
}

.dhimaniya-navbar .user-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--warning), var(--danger)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    font-size: 0.8rem !important;
}

.dhimaniya-navbar .user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.dhimaniya-navbar .user-name {
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    color: white !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100px !important;
}

.dhimaniya-navbar .user-email {
    font-size: 0.65rem !important;
    opacity: 0.9 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100px !important;
}

/* Ensure proper spacing in navbar */
.dhimaniya-navbar .navbar-nav.ms-auto {
    gap: 0.5rem !important;
    align-items: center !important;
}

/* Ensure badge is visible even when count is 0 */
.dhimaniya-navbar .cart-badge:not(:empty) {
    display: flex !important;
}

/* ===== CART BADGE - ALWAYS VISIBLE WITH COUNT ===== */
.dhimaniya-navbar .quick-action-btn.position-relative {
    position: relative !important;
}

.dhimaniya-navbar .cart-badge {
    background: linear-gradient(135deg, var(--danger), #e63946) !important;
    border: 2px solid white !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    color: white !important;
    border-radius: 50% !important;
    padding: 0 !important;
    line-height: 1 !important;
    z-index: 1 !important;
}

/* Remove conflicting Bootstrap positioning classes */
.dhimaniya-navbar .position-absolute.top-0.start-100.translate-middle {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    left: auto !important;
    transform: none !important;
}
/* ===== ADMIN NAVBAR FIXES ===== */
.dhimaniya-navbar .admin-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 25px !important;
    margin: 0 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dhimaniya-navbar .admin-user-info .user-avatar {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--warning), var(--danger)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
}

.dhimaniya-navbar .admin-user-info .user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    flex: 1 !important;
}

.dhimaniya-navbar .admin-user-info .user-name {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: white !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 120px !important;
}

.dhimaniya-navbar .admin-user-info .user-email {
    font-size: 0.75rem !important;
    opacity: 0.9 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 120px !important;
}

.dhimaniya-navbar .admin-badge {
    background: linear-gradient(135deg, var(--success), #06b48e) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.dhimaniya-navbar .super-admin-badge {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d) !important;
    color: #2b2d42 !important;
}

.dhimaniya-navbar .logout-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.dhimaniya-navbar .logout-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Ensure admin navbar items are properly aligned */
.dhimaniya-navbar .navbar-nav.ms-auto.align-items-center {
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

/* Mobile responsive for admin navbar */
@media (max-width: 991.98px) {
    .dhimaniya-navbar .admin-user-info {
        flex-direction: column !important;
        text-align: center !important;
        margin: 10px 0 !important;
        padding: 15px !important;
        width: 100% !important;
    }
    
    .dhimaniya-navbar .admin-user-info .user-info {
        align-items: center !important;
        margin: 10px 0 !important;
    }
    
    .dhimaniya-navbar .admin-user-info .user-name,
    .dhimaniya-navbar .admin-user-info .user-email {
        max-width: 200px !important;
    }
    
    .dhimaniya-navbar .logout-btn {
        width: 100% !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
    
    .dhimaniya-navbar .navbar-nav.ms-auto.align-items-center {
        width: 100% !important;
        flex-direction: column !important;
    }
}

/* Ensure proper spacing in admin navbar */
.dhimaniya-navbar .navbar-nav.me-auto {
    gap: 10px !important;
}