/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

div {
    display: block;
    unicode-bidi: isolate;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Desktop: Hide mobile menu toggle */
.menu-toggle {
    display: none;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: #e74c3c;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e74c3c;
}

.cart-badge {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.dropdown-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 0.5rem 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    color: #333;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    color: #3498db;
    padding-left: 1.25rem;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Page Title */
.page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.product-info {
    padding: 1.25rem;
}

.product-info .btn-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.product-info .btn-group .btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 8px;
    min-width: 0;
    width: 50%;
    box-sizing: border-box;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
    line-height: 1.4;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    border-radius: 10px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    width: auto;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.btn-wishlist {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background: #dc3545;
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d68910 0%, #b7950b 100%);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Cart Page */
.cart-container {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

.cart-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-header span {
    flex: 1;
    text-align: center;
}

.cart-header span:first-child {
    flex: 2;
    text-align: left;
    padding-left: 100px;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: all 0.25s ease;
}

.cart-item:hover {
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-item-info {
    flex: 2;
    padding-left: 1.5rem;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.cart-item-price {
    color: #e94560;
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-qty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f1f3f9;
    border-radius: 10px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.quantity-btn:hover:not(:disabled) {
    background: #e94560;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.3);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-value {
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    font-size: 1rem;
    color: #1a1a2e;
}

.cart-item-total {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
}

.cart-item-action {
    flex: 0 0 50px;
    display: flex;
    justify-content: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #c5c5c5;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #ffeaea;
    color: #e94560;
    transform: scale(1.1);
}

.quantity-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.15s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #e9ecef;
    color: #000;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #a0a0a0;
}

.summary-row span:last-child {
    font-weight: 700;
    font-size: 1.5rem;
    color: #000000;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
    padding: 1rem 2rem;
    background: #f8f9fa;
}

.cart-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Checkout Form */
.checkout-container {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

/* Order Confirmation */
.confirmation-container {
    background: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.confirmation-title {
    font-size: 2rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.confirmation-message {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.order-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: left;
    margin-bottom: 2rem;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.order-detail-row:last-child {
    border-bottom: none;
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f6fa;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    color: #fff;
    padding: 0;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    padding: 1.5rem 1.5rem;
    margin-bottom: 0;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 2px;
    min-height: 70px;
}
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo::before {
    content: "";
}

/* DMC Logo in Sidebar */
.logo-dmc {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

/* For dark backgrounds (tracking page) */
.tracking-sidebar .logo-dmc {
    background: linear-gradient(135deg, #667eea 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .sidebar-logo {
        font-size: 1.4rem;
        justify-content: flex-start;
    }
}

.sidebar-menu {
    padding: 1rem 0.75rem;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    color: rgba(255,255,255,0.7);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-menu a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(3px);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #fff;
    border-left: 3px solid #667eea;
    transform: translateX(3px);
}

.sidebar-menu a.active::before {
    background: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.sidebar-menu a:hover::before {
    background: #667eea;
    opacity: 0.7;
}

/* Chat Badge in Sidebar */
.chat-badge {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.chat-link {
    display: flex;
    align-items: center;
}

/* Sidebar User Section */
.sidebar-user-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 10000 !important;
    }
    
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        z-index: 9999 !important;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    .sidebar-overlay {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s, visibility 0.3s !important;
        z-index: 9998 !important;
    }
    
    .sidebar-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dashboard-content {
        margin-left: 0 !important;
        padding: 1rem !important;
        padding-top: 4rem !important;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.dashboard-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8e8e8;
}

.dashboard-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
}

.dashboard-title::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

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

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card-title {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-card-value.success {
    color: #27ae60;
}

.stat-card-value.warning {
    color: #f39c12;
}

.stat-card-value.danger {
    color: #e74c3c;
}

/* Dashboard Tables */
.data-table-container {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.data-table-container h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table th {
    background: linear-gradient(180deg, #f8f9fa 0%, #e8e8e8 100%);
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.02) 100%);
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
}

.status-paid {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.status-failed {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.status-completed {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.status-cancelled {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.status-processing {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.status-shipped {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
}

/* Tracking Timeline */
.tracking-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.tracking-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.tracking-timeline > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

/* Order Detail View */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.order-info-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.order-detail-row:last-child {
    border-bottom: none;
}

.order-detail-row span:first-child {
    color: #666;
    font-weight: 500;
}

.order-detail-row span:last-child {
    text-align: right;
    font-weight: 600;
}

/* Order Detail Styles - Override for view */
.user-dashboard .order-detail-header,
.user-dashboard .order-info-grid,
.user-dashboard .order-info-card {
    all: initial;
    display: block;
}

.user-dashboard .order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    background: transparent;
}

.user-dashboard .order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    background: transparent;
}

.user-dashboard .order-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

/* Ensure table displays correctly */
.user-dashboard .data-table-container {
    background: transparent;
    padding: 0;
    margin-top: 1rem;
    overflow-x: auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

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

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

.toast-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.modal-title {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.modal-close {
    background: #f1f2f6;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #7f8c8d;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e74c3c;
    color: #fff;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-state-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.empty-state-text {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 1.25rem;
}

/* Cart Empty State */
#cart-empty {
    padding: 3rem 1.5rem;
}

#cart-empty .empty-state-icon {
    margin-bottom: 0.75rem;
}

#cart-empty .empty-state-icon svg {
    width: 48px;
    height: 48px;
}

#cart-empty .empty-state-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-section h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.95;
    position: relative;
}

/* Search and Filter */
.search-filter-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.filter-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 90px;
    border: 1px solid #e5e7eb;
}

.filter-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-header svg {
    flex-shrink: 0;
}

.filter-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-body {
    padding: 0.5rem;
}

.category-filter {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-filter li {
    margin: 2px 0;
}

.category-filter a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

.category-filter a:hover {
    background: #f3f4f6;
    color: #6366f1;
}

.category-filter a.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.category-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.category-filter a.active .category-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.filter-content {
    flex: 1;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    background: transparent;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: #a0aec0;
}

.search-box .btn {
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    font-weight: 500;
}

.product-count {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #7f8c8d;
    margin: 0;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* About Page */
.about-container {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-hero {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 2rem;
}

.about-hero h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.about-hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-section p {
    color: #555;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Product Detail Page */
.breadcrumb {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.product-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.product-image-col {
    flex: 0 0 42%;
    max-width: 42%;
}

.product-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 1rem;
}

.product-image-wrapper img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.product-info-col {
    flex: 1;
    padding-left: 1rem;
}

.product-info-col h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.product-info-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.product-description-box {
    margin-bottom: 1.5rem;
}

.product-description-box h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #212529;
}

.product-description-box p {
    color: #6c757d;
    font-size: 0.875rem;
}

.quantity-selector-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.quantity-selector-wrapper span {
    margin-right: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
}

.quantity-controls-new {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem;
}

.quantity-controls-new button {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    color: #6f42c1;
    cursor: pointer;
    text-decoration: none;
}

.quantity-controls-new span {
    padding: 0.25rem 1rem;
    font-weight: 700;
}

.product-info-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.product-info-row {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.info-label {
    flex: 0 0 35%;
    color: #6c757d;
}

.info-value {
    flex: 1;
    color: #212529;
    font-weight: 500;
}

.info-value.available {
    color: #198754;
    font-weight: 700;
}





.product-detail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
    border-radius: 12px;
    flex-wrap: wrap;
}



.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Order Detail Page */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.order-info-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.data-table tfoot td {
    border-top: 2px solid #2c3e50;
    font-weight: bold;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer - Vertical Sidebar Style */
footer {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 2rem 1rem;
    margin-top: 4rem;
    position: relative;
    border-top: 3px solid #00d9ff;
}

footer p, footer li, footer span {
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: #00d9ff !important;
}

footer h3 {
    color: #ffffff !important;
}

footer h4 {
    color: #00d9ff !important;
    border-bottom-color: #00d9ff !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 217, 255, 0.08) 0%, transparent 50%, rgba(0, 217, 255, 0.08) 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-section {
    text-align: left;
    flex: 1;
    min-width: 200px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.4);
}

.footer-section h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #00d9ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00d9ff;
}

.footer-section p {
    color: #ffffff;
    margin: 0.6rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-section ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section ul li {
    position: relative;
    display: block;
}

.footer-section ul li::before {
    display: none;
}

.footer-section ul li a {
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    display: inline-block;
    border: none;
    background: none;
    border-radius: 0;
}

.footer-section ul li a:hover {
    color: #00d9ff;
    background: none;
    border: none;
    box-shadow: none;
    padding-left: 8px;
}

.footer-section .social-links {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-section .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid #00d9ff;
    border-radius: 50%;
    color: #00d9ff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.footer-section .social-links a:hover {
    background: #00d9ff;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

.footer-section .social-links a:hover {
    background: #00d9ff;
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding: 1.2rem;
    border-top: 2px solid rgba(0, 217, 255, 0.3);
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Footer Vertical Layout */
.footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    text-align: left;
    min-width: 180px;
    max-width: 250px;
}

.footer-section.footer-brand {
    max-width: 300px;
}

.footer-section.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.footer-section.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section h4 {
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00d9ff;
    display: inline-block;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section .social-links {
    justify-content: flex-start;
    gap: 0.8rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
}
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #00d9ff;
    padding-left: 5px;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

.footer-section .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-section .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 50%;
    color: #00d9ff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.3rem;
}

.footer-section .social-links a:hover {
    background: #00d9ff;
    color: #0f0c29;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    color: #e8e8e8;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    color: #e8e8e8;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ffffff;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #00d9ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
    color: #7f8c8d;
}

/* Responsive Mobile */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Header */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .navbar {
        flex-wrap: wrap;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        padding: 3px 0;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Mobile Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 1.25rem;
        color: #333;
        font-size: 1rem;
        text-align: left;
    }
    
    .nav-links a:hover {
        background: #f8f9fa;
    }
    
    .nav-links a.active {
        color: #667eea;
    }
    
    /* Mobile Dropdown */
    .dropdown {
        position: static;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        padding: 1rem 1.25rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        background: #f8f9fa;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Mobile Search */
    .search-bar {
        display: flex;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 1rem;
        border-radius: 12px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Product Grid Mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .footer-section {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        padding: 1rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section ul {
        align-items: center;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Footer container override */
    footer .container {
        padding: 0;
        max-width: 100%;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .product-price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-info .btn-group {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .product-info .btn-group .btn {
        width: 100%;
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Popular Products Mobile */
    .popular-products-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .best-seller-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    /* Cart Page Mobile */
    .cart-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-info {
        padding: 0;
    }
    
    .cart-item-name {
        font-size: 1rem;
    }
    
    .cart-item-price {
        font-size: 0.95rem;
    }
    
    .cart-item-total {
        text-align: center;
        font-size: 1rem;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .remove-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .cart-summary {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .summary-row {
        justify-content: space-between;
        gap: 1rem;
        font-size: 0.95rem;
    }
    
    .summary-total {
        font-size: 1.2rem;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    /* Checkout Mobile */
    .checkout-container {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .checkout-container h2 {
        font-size: 1.25rem;
    }
    
    /* Page Title Mobile */
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    /* Sidebar Mobile - Dashboard */
    @media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    }  /* End @media sidebar mobile */
    
    /* Footer Mobile */
    footer {
        background: #000000 !important;
        color: #ffffff !important;
        padding: 1.5rem 0.5rem;
    }
    
    footer p, footer li, footer span {
        color: #ffffff !important;
    }
    
    footer a {
        color: #ffffff !important;
    }
    
    footer a:hover {
        color: #00d9ff !important;
    }
    
    footer h3 {
        color: #ffffff !important;
    }
    
    footer h4 {
        color: #00d9ff !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-section {
        text-align: center;
        padding: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
    }
    
    .footer-section ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-section .social-links {
        justify-content: center;
    }
    
    /* Chat Widget Mobile */
    .chat-widget {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .chat-toggle-btn {
        bottom: 15px;
        right: 15px;
    }
}

/* Footer Mobile */
footer {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 2rem 0 1rem;
}

footer p, footer li, footer span {
    color: #ffffff !important;
}

footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: #00d9ff !important;
}

footer h3 {
    color: #ffffff !important;
}

footer h4 {
    color: #00d9ff !important;
}

/* Loading Spinner */
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .data-table-container h2 {
        font-size: 1.1rem;
    }
    
    .data-table {
        min-width: 100%;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
    
    /* Cart Page Mobile - Modern & Cool */
    .cart-container {
        padding: 1rem;
        border-radius: 12px;
        background: #fff;
    }
    
    .cart-item {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 12px;
        margin-bottom: 1rem;
        position: relative;
    }
    
    .cart-item-image {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .cart-item-info {
        padding: 0;
    }
    
    .cart-item-name {
        font-size: 1rem;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .cart-item-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #e74c3c;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-details {
        margin-bottom: 0.75rem;
    }
    
    .cart-item-total {
        font-size: 1rem;
        font-weight: 700;
        color: #667eea;
        margin-top: 0.25rem;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        background: #fff;
        border-radius: 25px;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        border: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.2rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .quantity-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    .quantity-value {
        font-weight: 700;
        min-width: 40px;
        text-align: center;
        font-size: 1rem;
        color: #1a202c;
    }
    
    .remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(231, 76, 60, 0.1);
        border: none;
        color: #e74c3c;
        cursor: pointer;
        font-size: 1.4rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .remove-btn:hover {
        background: #e74c3c;
        color: #fff;
    }
    
    .cart-summary {
        margin-top: 1.5rem;
        padding: 1.5rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        color: #fff;
    }
    
    .summary-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .summary-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .summary-total {
        font-size: 1.5rem;
        font-weight: 800;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    
    .cart-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .cart-actions .btn-success {
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }
    
    .cart-actions .btn-secondary {
        background: rgba(255,255,255,0.2);
        color: #fff;
        border: 2px solid rgba(255,255,255,0.3);
    }
    
    /* Checkout Mobile */
    .checkout-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .checkout-container h2 {
        font-size: 1.25rem;
    }
    
    /* Contact Page Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .contact-info h2 {
        font-size: 1.3rem;
    }
    
    /* About Page Mobile */
    .about-container {
        padding: 1.25rem;
    }
    
    .about-hero h2 {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Product Detail Mobile */
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    @media (max-width: 768px) {
    .product-detail-row {
        flex-direction: column;
    }
    
    .product-image-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-info-col {
        padding-left: 0;
    }
    
    /* Pagination Mobile */
    .pagination {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    /* Footer Mobile - Shopee Style */
    footer {
        padding: 1.5rem 0 1rem;
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-section h4 {
        color: #00d9ff !important;
    }
    
    footer p, footer li, footer span {
        color: #ffffff !important;
    }
    
    footer a {
        color: #ffffff !important;
    }
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        color: #333;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
        color: #666;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        color: #999;
    }
    
    /* Pagination Mobile */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 2rem;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Chat Widget Mobile */
    .chat-widget {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .chat-toggle-btn {
        bottom: 15px;
        right: 15px;
    }
    
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .product-grid {
        gap: 0.6rem;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-info .btn-group .btn {
        font-size: 0.7rem;
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    /* Footer Extra Small */
    .footer-section {
        padding: 0.75rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section h4 {
        font-size: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.75rem;
    }
    
    .footer-section ul li a {
        font-size: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}

/* Loading Spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==================== Live Chat Widget ==================== */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
    overflow: hidden;
    flex-direction: column;
}

.chat-widget.chat-bottom-right {
    bottom: 20px;
    right: 20px;
}

.chat-widget.chat-bottom-left {
    bottom: 20px;
    left: 20px;
}

.chat-widget.chat-open {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.chat-icon {
    font-size: 1.3rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-body {
    flex: 1;
    height: 350px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    max-width: 85%;
}

.chat-message-user {
    align-self: flex-end;
}

.chat-message-admin,
.chat-message-system {
    align-self: flex-start;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
}

.chat-message-user .chat-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message-admin .chat-message-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.chat-message-system .chat-message-bubble {
    background: #f0f0f0;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 10px;
    align-self: center;
    max-width: 90%;
}

.chat-message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.chat-message-user .chat-message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.chat-message-admin .chat-message-sender {
    color: #667eea;
}

.chat-message-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message-time {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.chat-typing {
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: #667eea;
}

.chat-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Chat Toggle Button */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.chat-toggle-icon {
    font-size: 1.5rem;
}

.chat-toggle-text {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 2px;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

/* Chat Responsive */
@media (max-width: 480px) {
    .chat-widget {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .chat-toggle-btn {
        bottom: 15px;
        right: 15px;
    }
}

/* Chat Responsive */
@media (max-width: 480px) {
    .chat-widget {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 15px 15px 0 0;
    }
    
    .chat-toggle-btn {
        bottom: 15px;
        right: 15px;
    }
}

/* Chat Welcome Screen */
.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 30px 20px;
    text-align: center;
}

.chat-welcome-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

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

.chat-welcome-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.chat-welcome-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.chat-user-info {
    width: 100%;
    max-width: 250px;
}

.chat-start-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Chat Status Indicator */
.chat-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
}

.chat-status-indicator.online {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    animation: pulse-green 2s infinite;
}

.chat-status-indicator.offline {
    background: #e74c3c;
}

@keyframes pulse-green {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Chat Message with Avatar */
.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    max-width: 90%;
}

.chat-message-user {
    flex-direction: row-reverse;
    align-self: flex-end;
    margin-left: auto;
}

.chat-message-admin,
.chat-message-system {
    flex-direction: row;
    align-self: flex-start;
    margin-right: auto;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin: 0 10px;
}

.chat-message-user .chat-message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-message-admin .chat-message-avatar {
    background: #2ecc71;
}

.chat-message-content {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 56px);
}

.chat-message-user .chat-message-content {
    align-items: flex-end;
}

.chat-message-admin .chat-message-content {
    align-items: flex-start;
}

.chat-message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 4px;
}

.chat-message-user .chat-message-sender {
    color: #667eea;
}

.chat-message-system .chat-message-sender {
    display: none;
}

.chat-message-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    word-wrap: break-word;
}

.chat-message-user .chat-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message-admin .chat-message-bubble,
.chat-message-system .chat-message-bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.chat-message-system .chat-message-bubble {
    background: #f8f9fa;
    border: none;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.chat-message-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #888;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* SVG Icons Styling */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-2px);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    min-width: 280px;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.toast-message.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.toast-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.toast-text {
    flex: 1;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-section p svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-bottom svg {
    color: #e74c3c;
    vertical-align: middle;
}

.empty-state-icon svg {
    color: #667eea;
    opacity: 0.7;
}