:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --admin: #8b5cf6;
    --seller: #f97316;
    --buyer: #0ea5e9;
    --printer: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%);
    color: var(--dark);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.logo-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    border: 2px solid white;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 16px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.nav-link i.fa-chevron-down {
    font-size: 12px;
    margin-left: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Enhanced Role Badge Styles */
.role-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.role-badge span {
    display: none; /* Hide the default span */
}

.role-badge-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 50px;
    text-align: center;
    line-height: 1.2;
}

/* Specific colors for different roles */
.role-item.admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.role-item.penjual {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.role-item.pembeli {
    background: linear-gradient(135deg, #10b981, #059669);
}

.role-item.printing {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Fancy Logout Button Styles */
.logout-btn-container {
    margin-top: 8px;
}

.fancy-logout-form {
    margin: 0;
    padding: 0;
}

.fancy-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 90px;
}

.fancy-logout-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.fancy-logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.fancy-logout-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.fancy-logout-btn:hover i {
    transform: translateX(2px);
}

/* Single role - slightly larger */
.role-badge:has(.role-item:only-child) .role-item {
    font-size: 10px;
    padding: 3px 10px;
}

.notification-icon, .cart-icon, .user-profile-btn {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray);
    transition: color 0.3s;
    padding: 8px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.notification-icon:hover, .cart-icon:hover {
    color: var(--primary);
    /* background: rgba(99, 102, 241, 0.1); */
    background: rgba(99, 102, 241, 0.1) !important;
    border-radius: 8px !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.notification-count, .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-profile:hover {
    background: rgba(99, 102, 241, 0.1);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Popup Styles */
.notification-popup, .cart-popup, .user-menu-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.notification-popup.active, .cart-popup.active, .user-menu-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.popup-header h3 {
    font-size: 18px;
    color: var(--dark);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark);
}

/* Notification Items */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.3s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.03);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.notification-desc {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    color: var(--gray);
    font-size: 12px;
}

.popup-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Cart Items */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 20px;
}

.cart-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.printing-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.remove-item {
    position: absolute;
    top: 8px;
    right: 0;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.remove-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row.total {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
    margin-top: 8px;
}

.btn-block {
    width: 100%;
    justify-content: center;
} */

/* User Menu */
.user-menu-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
}

.user-menu-header .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.user-email {
    color: var(--gray);
    font-size: 14px;
}

.user-menu-items {
    padding: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    font-size: 14px;
}

.user-menu-item:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
}

.user-menu-item.logout {
    color: var(--danger);
}

.user-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.05);
}

.menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links {
        display: none;
    }
    
    .navbar {
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .notification-popup, .cart-popup, .user-menu-popup {
        width: 90vw;
        right: 5vw;
        left: 5vw;
    }
    
    .user-info {
        display: none;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Dashboard */
.dashboard {
    padding: 30px 0;
    display: none;
}

.dashboard.active {
    display: block;
}

.dashboard-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: var(--gray);
    font-size: 16px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.admin {
    border-left-color: var(--admin);
}

.stat-card.seller {
    border-left-color: var(--seller);
}

.stat-card.buyer {
    border-left-color: var(--buyer);
}

.stat-card.printer {
    border-left-color: var(--printer);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.stat-card .trend {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend.up {
    color: var(--secondary);
}

.trend.down {
    color: var(--danger);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.content-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.section-title {
    font-size: 22px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--dark);
}

.data-table tr:hover {
    background-color: #f9fafb;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-completed {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-processing {
    background-color: #f3e8ff;
    color: #7c3aed;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 18px;
}

.card-text {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* Image Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1/1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    width: 100%;
}

.gallery-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s;
}

.tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-3 {
    margin-top: 15px;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 10px;
}

.ml-2 {
    margin-left: 10px;
}

/* Tambah ini ke styles.css yang sedia ada */

/* Mobile Responsive Global Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header Mobile */
    .navbar {
        padding: 12px 0;
    }
    
    .user-info {
        display: none;
    }
    
    .user-actions {
        gap: 12px;
    }
    
    /* Dashboard & Cards */

    .quick-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .stats-cards,
    .quick-stats,
    .sales-overview,
    .events-summary {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .cards-grid,
    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Page Headers */
    .page-header,
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
    
    /* Forms & Filters */
    .filters-bar,
    .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        min-width: auto !important;
        width: 100%;
    }
    
    .search-box {
        min-width: auto !important;
    }
    
    /* Popups */
    .notification-popup,
    .cart-popup {
        width: 95vw !important;
        right: 2.5vw !important;
        left: 2.5vw !important;
    }
    
    /* Pagination */
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Content Sections */
    .content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .charts-section {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Logo */
    .logo span {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .dashboard-actions,
    .header-actions {
        width: 100%;
    }
    
    .dashboard-actions .btn,
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards */
    .stat-card,
    .sales-card,
    .event-summary-card {
        padding: 20px;
    }
    
    .stat-value,
    .sales-value {
        font-size: 24px;
    }
    
    /* Tables - Stack on very small screens */
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    /* Event cards */
    .event-stats {
        grid-template-columns: 1fr !important;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Touch-friendly improvements */
.btn, 
.nav-link, 
.tab, 
.pagination-btn,
.action-btn,
.btn-icon {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Improve readability on mobile */
body {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Safe area insets for notched devices */
@supports(padding: max(0px)) {
    .container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
}


/* Footer Styles */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-logo .logo {
    margin-bottom: 15px;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    font-size: 14px;
    color: #9ca3af;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    font-size: 24px;
}

.payment-methods i {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-methods i:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}