/* Admin Panel Styles */

/* Global Box Sizing */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Admin Login Page */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1f3f 0%, #1a3a5f 100%);
    padding: 20px;
}

.admin-login-container {
    width: 100%;
    max-width: 450px;
}

.admin-login-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header .admin-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.admin-login-header h2 {
    color: #0a1f3f;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-login-header p {
    color: #666;
    font-size: 14px;
}

.admin-login-form .form-group {
    margin-bottom: 20px;
}

.admin-login-form label {
    color: #0a1f3f;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.admin-login-form label i {
    margin-right: 8px;
    color: #edbc5c;
}

.btn-admin-primary {
    background-color: #0a1f3f !important;
    border-color: #0a1f3f !important;
    color: #fff !important;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-admin-primary::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    background: #edbc5c;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-admin-primary:hover::before {
    top: -40%;
}

.btn-admin-primary:hover {
    background-color: #0a1f3f !important;
    border-color: #edbc5c !important;
    color: #0a1f3f !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(237, 188, 92, 0.4);
}

.admin-login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-home,
.user-login-link {
    color: #0a1f3f;
    font-size: 14px;
    text-decoration: none;
}

.back-to-home:hover,
.user-login-link:hover {
    color: #edbc5c;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f5f6fa;
    overflow-x: hidden;
    position: relative;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: #0a1f3f;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo img {
    max-width: 120px;
    margin-bottom: 10px;
}

.admin-logo h3 {
    color: #edbc5c;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.admin-nav ul li {
    margin-bottom: 5px;
}

.admin-nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-nav ul li a i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background-color: rgba(237, 188, 92, 0.1);
    color: #edbc5c;
}

/* Admin Main Content */
.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100%;
}

/* Admin Header */
.admin-header {
    background-color: #fff;
    padding: 20px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-left h2 {
    color: #0a1f3f;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user span {
    color: #666;
    font-size: 14px;
}

.btn-logout {
    background-color: #0a1f3f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-logout::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    background: #edbc5c;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-logout:hover::before {
    top: -40%;
}

.btn-logout:hover {
    color: #0a1f3f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(237, 188, 92, 0.4);
}

/* Admin Content */
.admin-content {
    padding: 30px;
    flex: 1;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Dashboard Styles */
.admin-dashboard h1 {
    color: #0a1f3f;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-dashboard > p {
    color: #666;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-icon.products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.orders {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.stat-details h3 {
    color: #0a1f3f;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.stat-details p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Dashboard Actions */
.dashboard-actions {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-actions h2 {
    color: #0a1f3f;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    background-color: #0a1f3f !important;
    color: #fff !important;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.action-btn:hover {
    background-color: #edbc5c !important;
    color: #0a1f3f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 188, 92, 0.3);
}

.action-btn i {
    color: inherit !important;
}

.action-btn:hover i {
    color: #0a1f3f !important;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #0a1f3f;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.btn-add {
    background-color: #edbc5c;
    color: #0a1f3f;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-add::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    background: #0a1f3f;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-add:hover::before {
    top: -40%;
}

.btn-add:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(10, 31, 63, 0.4);
}

.btn-add i {
    margin-right: 8px;
}

/* Filter Group */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #0a1f3f;
    font-weight: 600;
}

.filter-group .form-control {
    min-width: 200px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background-color: #0a1f3f;
    color: #fff;
}

.admin-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
    background-color: #f5f6fa;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
    color: #fff;
}

.badge-info {
    background-color: #17a2b8;
    color: #fff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

.badge-primary {
    background-color: #007bff;
    color: #fff;
}

/* Action Buttons */
.btn-icon {
    background: none;
    border: none;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-icon::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-icon:hover::before {
    top: -40%;
}

.btn-icon:hover {
    transform: translateY(-2px);
}

.btn-icon.btn-edit {
    color: #0a1f3f;
}

.btn-icon.btn-edit::before {
    background: #0a1f3f;
}

.btn-icon.btn-edit:hover {
    color: #fff;
    box-shadow: 0 5px 15px rgba(10, 31, 63, 0.3);
}

.btn-icon.btn-delete {
    color: #dc3545;
}

.btn-icon.btn-delete::before {
    background: #dc3545;
}

.btn-icon.btn-delete:hover {
    color: #fff;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-icon.btn-view {
    color: #17a2b8;
}

.btn-icon.btn-view::before {
    background: #17a2b8;
}

.btn-icon.btn-view:hover {
    color: #fff;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

/* Status Select */
.status-select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.modal-header h2 {
    color: #0a1f3f;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* Form Styles */
.modal-body form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #0a1f3f;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.form-control {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #edbc5c;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-primary {
    background-color: #0a1f3f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    background: #edbc5c;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    top: -40%;
}

.btn-primary:hover {
    color: #0a1f3f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(237, 188, 92, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 110%;
    left: 50%;
    background: #edbc5c;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-secondary:hover::before {
    top: -40%;
}

.btn-secondary:hover {
    color: #0a1f3f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(237, 188, 92, 0.4);
}

/* Order Details */
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-section {
    background-color: #f5f6fa;
    padding: 15px;
    border-radius: 8px;
}

.detail-section h3 {
    color: #0a1f3f;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-section p {
    margin: 8px 0;
    font-size: 14px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.items-table th,
.items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.items-table thead {
    background-color: #f5f6fa;
}

.items-table tfoot {
    font-weight: 700;
    background-color: #f5f6fa;
}

/* User Details */
.user-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-row strong {
    color: #0a1f3f;
    font-weight: 600;
}

.detail-section-title {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #0a1f3f;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #666;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #0a1f3f;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
    transition: color 0.3s ease;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    color: #edbc5c;
}

.mobile-menu-toggle:focus {
    outline: none;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    animation: fadeIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Show overlay when sidebar is open */
    .sidebar-overlay {
        display: block;
    }

    /* Admin Sidebar - Hidden by default on mobile */
    .admin-sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        width: 260px;
        max-width: 85vw;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Show sidebar when open */
    .admin-sidebar.open {
        transform: translateX(0) !important;
    }

    /* Adjust main content */
    .admin-main {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100vw;
    }

    /* Admin Header - Adjust for mobile */
    .admin-header {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }

    .admin-header-left {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .admin-header-left h2 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-header-right {
        gap: 10px;
        flex-shrink: 0;
    }

    .admin-user {
        display: flex;
        align-items: center;
    }

    .admin-user span {
        display: none;
    }

    .btn-logout {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .btn-logout i {
        margin-right: 0;
    }

    /* Admin Content */
    .admin-content {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Dashboard and Grids */
    .dashboard-stats {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Filter Group on Mobile */
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }

    .filter-group label {
        margin-bottom: 8px;
        display: block;
    }

    .filter-group .form-control {
        width: 100% !important;
        min-width: auto !important;
    }

    .form-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Dashboard Title */
    .admin-dashboard {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .admin-dashboard h1 {
        word-wrap: break-word;
    }

    .admin-table {
        font-size: 14px;
    }

    /* Products Table - Card View on Mobile */
    .products-table-container {
        width: 100%;
        overflow: visible;
    }

    .admin-table {
        display: block;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: block;
    }

    .admin-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: relative;
    }

    .admin-table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
        position: relative;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #0a1f3f;
        display: inline-block;
        min-width: 100px;
        margin-right: 10px;
    }

    /* Product Image in Card */
    .admin-table tbody tr td:first-child {
        text-align: center;
        padding: 10px 0 15px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }

    .admin-table tbody tr td:first-child::before {
        display: none;
    }

    .admin-table tbody tr td:first-child img,
    .admin-table tbody tr td:first-child div {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto;
    }

    /* Product Actions in Card */
    .admin-table tbody tr td:last-child {
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-top: 10px;
        text-align: center;
    }

    .admin-table tbody tr td:last-child::before {
        display: none;
    }

    .admin-table tbody tr td:last-child button {
        margin: 0 5px;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    /* Stat Cards */
    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stat-details h3 {
        font-size: 24px;
    }

    /* Modal Adjustments */
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    /* Admin Table Mobile View */
    .admin-table {
        display: block;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table table {
        min-width: 600px;
    }

    /* Page Titles */
    .page-header h1 {
        font-size: 22px;
    }

    .btn-add {
        width: 100%;
        margin-top: 10px;
    }

    /* Action Buttons - More Touch-Friendly */
    .btn-icon {
        padding: 10px 14px;
        font-size: 16px;
        margin: 0 6px;
    }

    /* Badge Styles */
    .badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Orders Table - Special Card Layout */
    .orders-table-container {
        width: 100%;
        overflow: visible;
    }

    .orders-table-container .admin-table tbody tr td:last-child {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .orders-table-container .admin-table tbody tr td:last-child::before {
        display: block;
        text-align: center;
        margin-bottom: 5px;
    }

    .orders-table-container .admin-table tbody tr td:last-child button,
    .orders-table-container .admin-table tbody tr td:last-child select {
        width: 100%;
        margin: 0;
    }

    .orders-table-container .status-select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        text-align: center;
    }

    /* Date & Time on Mobile */
    .orders-table-container .admin-table tbody tr td[data-label="Date & Time"] small {
        display: block;
        margin-top: 4px;
    }

    /* Leads Table - Card Layout */
    .leads-table-container {
        width: 100%;
        overflow: visible;
    }

    .leads-table-container .admin-table tbody tr td:last-child {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }

    .leads-table-container .admin-table tbody tr td:last-child::before {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Filters Card on Mobile */
    .filters-card {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        width: 100%;
        box-sizing: border-box;
    }

    .filters-card .row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .filters-card .col-md-3 {
        width: 100%;
    }

    .filters-card label {
        display: block;
        color: #0a1f3f;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .filters-card .form-control {
        width: 100%;
    }

    /* Stats Grid on Mobile */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #fff;
        flex-shrink: 0;
    }

    .stat-icon.bg-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .stat-icon.bg-info {
        background: linear-gradient(135deg, #17a2b8 0%, #2ec4d8 100%);
    }

    .stat-icon.bg-warning {
        background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    }

    .stat-icon.bg-success {
        background: linear-gradient(135deg, #28a745 0%, #3dce5e 100%);
    }

    .stat-info h3 {
        font-size: 24px;
        font-weight: 700;
        color: #0a1f3f;
        margin: 0 0 5px 0;
    }

    .stat-info p {
        font-size: 14px;
        color: #666;
        margin: 0;
    }
}

/* Extra Small Devices (phones, less than 480px) */
@media (max-width: 480px) {
    /* Header */
    .admin-header {
        padding: 12px 15px;
    }

    .admin-header-left h2 {
        font-size: 16px;
    }

    .btn-logout {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* Content */
    .admin-content {
        padding: 15px 10px;
    }

    /* Stat Cards */
    .stat-card {
        padding: 15px;
        gap: 15px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .stat-details h3 {
        font-size: 20px;
    }

    .stat-details p {
        font-size: 13px;
    }

    /* Dashboard */
    .admin-dashboard h1 {
        font-size: 22px;
    }

    .dashboard-subtitle {
        font-size: 13px;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 20px;
    }

    /* Forms */
    .form-control,
    .status-select {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Action Buttons */
    .action-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Modal */
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        margin: 0;
        max-width: 100%;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    /* Sidebar Logo */
    .admin-logo {
        padding: 20px 15px;
    }

    .admin-logo img {
        max-width: 100px;
    }

    .admin-logo h3 {
        font-size: 16px;
    }

    /* Navigation */
    .admin-nav ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .admin-nav ul li a i {
        font-size: 16px;
    }

    /* Products Table - Even More Compact */
    .admin-table tbody tr {
        padding: 12px;
        margin-bottom: 12px;
    }

    .admin-table tbody td {
        padding: 6px 0;
        font-size: 14px;
    }

    .admin-table tbody td::before {
        min-width: 80px;
        font-size: 13px;
    }

    .admin-table tbody tr td:first-child img,
    .admin-table tbody tr td:first-child div {
        width: 70px !important;
        height: 70px !important;
    }

    /* Action Buttons - Smaller on Extra Small Screens */
    .btn-icon {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Medium Devices (tablets, 768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
    }

    .admin-header {
        padding: 18px 25px;
    }

    .admin-content {
        padding: 25px 20px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
