* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc3545;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --sidebar-width: 250px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background: var(--light-color);
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--dark-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
}

.admin-sidebar.sidebar-closed {
    width: 70px;
}

/* Sidebar toggle button inside sidebar */
.sidebar-toggle-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
}

.sidebar-toggle-inner:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar.sidebar-closed .sidebar-toggle-inner {
    padding: 1rem 0.5rem;
}

/* Mobile: Make sidebar toggle button more visible */
@media (max-width: 768px) {
    .sidebar-toggle-inner {
        background: rgba(255, 255, 255, 0.15);
        padding: 1rem;
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-toggle-inner:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    /* Hide any duplicate toggle buttons in header or elsewhere */
    .admin-header button[class*="toggle"],
    .admin-header button[id*="toggle"],
    .admin-header button[class*="menu"],
    .admin-header button[id*="menu"] {
        display: none !important;
    }
}

/* Menu Toggle Button - Removed mobile menu toggle button */

.admin-logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: padding 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
    transition: max-width 0.3s ease;
}

.admin-sidebar.sidebar-closed .admin-logo {
    padding: 2rem 0.5rem;
    text-align: center;
}

.admin-sidebar.sidebar-closed .admin-logo img {
    max-width: 50px;
}

.admin-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar.sidebar-closed .admin-logo h2 {
    font-size: 0;
    margin: 0;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-logo p {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar.sidebar-closed .admin-logo p {
    font-size: 0;
    margin: 0;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.admin-sidebar.sidebar-closed .nav-item {
    padding: 1rem;
    justify-content: center;
    align-items: center;
    gap: 0;
    color: white !important;
}

.admin-sidebar.sidebar-closed .nav-item > *:not(span:first-child) {
    display: none !important;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.admin-sidebar.sidebar-closed .nav-item:hover {
    color: white !important;
}

.admin-sidebar.sidebar-closed .nav-item:hover span {
    filter: grayscale(50%);
    opacity: 1;
}

.admin-sidebar.sidebar-closed .nav-item.active {
    border-left: none;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    color: white !important;
}

.admin-sidebar.sidebar-closed .nav-item.active span {
    filter: grayscale(0%);
    opacity: 1;
}

.nav-item span {
    font-size: 1.25rem;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.admin-sidebar.sidebar-closed .nav-item span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    font-size: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.8;
}

.nav-item .nav-item-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    opacity: 1;
    width: auto;
}

.admin-sidebar.sidebar-closed .nav-item .nav-item-text {
    display: none !important;
    opacity: 0;
    width: 0;
    overflow: hidden;
    visibility: hidden;
}

/* Tooltip for closed sidebar */
.admin-sidebar.sidebar-closed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.admin-sidebar.sidebar-closed .nav-item:hover::after {
    opacity: 1;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 70px;
    padding: 1rem;
    padding-top: 1rem;
    transition: margin-left 0.3s ease;
    width: calc(100% - 70px);
}

.admin-sidebar.sidebar-open ~ .admin-main,
.admin-container:has(.admin-sidebar.sidebar-open) .admin-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .admin-sidebar.sidebar-open ~ .admin-main {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
    animation: slideInDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

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

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

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

/* Buttons - Enhanced */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #475569 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Search Section */
.search-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-section input {
    transition: border-color 0.3s;
}

.search-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Filter Buttons */
.filter-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.stat-card,
.card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Enhanced card for product edit page */
.card {
    animation: fadeInUp 0.6s ease-out;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.card:hover::after {
    opacity: 1;
}

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

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-products-card,
.trending-products-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.products-mini-list {
    max-height: 400px;
    overflow-y: auto;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Table */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

table td a {
    transition: color 0.3s;
}

table td a:hover {
    color: #c82333 !important;
}

thead {
    background: var(--light-color);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background: var(--light-color);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #ef4444;
    color: white;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-failed {
    background: #f3f4f6;
    color: #374151;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-color);
}

/* Form */
.form-group {
    margin-bottom: 2rem;
    position: relative;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.form-group:hover {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(220, 53, 69, 0.3);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }
.form-group:nth-child(8) { animation-delay: 0.45s; }
.form-group:nth-child(9) { animation-delay: 0.5s; }
.form-group:nth-child(10) { animation-delay: 0.55s; }
.form-group:nth-child(11) { animation-delay: 0.6s; }
.form-group:nth-child(12) { animation-delay: 0.65s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quill Editor Styles - Enhanced */
#product-description-editor {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    border: 2px solid var(--border-color);
    position: relative;
}

#product-description-editor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

#product-description-editor:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
    border-color: rgba(220, 53, 69, 0.3);
}

#product-description-editor:hover::before {
    opacity: 1;
}

#product-description-editor:focus-within {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

#product-description-editor:focus-within::before {
    opacity: 1;
}

#product-description-editor .ql-editor {
    min-height: 300px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

#product-description-editor .ql-toolbar {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    border: 2px solid var(--border-color);
    border-bottom: none;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#product-description-editor .ql-toolbar .ql-formats {
    margin-right: 1rem;
}

#product-description-editor .ql-toolbar button {
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

#product-description-editor .ql-toolbar button:hover,
#product-description-editor .ql-toolbar button.ql-active {
    color: var(--primary-color);
    background: rgba(220, 53, 69, 0.15);
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

#product-description-editor .ql-container {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border: 2px solid var(--border-color);
    border-top: none;
    transition: all 0.3s ease;
    background: white;
}

#product-description-editor:focus-within .ql-container {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.form-group:focus-within label {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.form-group label::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.form-group:focus-within label::before {
    opacity: 1;
    transform: translateX(-3px);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 6px 16px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, white 0%, #fef2f2 100%);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group select:valid {
    border-color: var(--success-color);
    background: linear-gradient(135deg, white 0%, #f0fdf4 100%);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, white 0%, #fef2f2 100%);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.form-group textarea:focus::placeholder {
    opacity: 0.3;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dc3545' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid var(--border-color);
    appearance: none;
    background: white;
}

.form-group input[type="checkbox"]::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.form-group input[type="checkbox"]:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    border-color: var(--primary-color);
}

.form-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.form-group input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.form-group input[type="checkbox"]:checked:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.form-group label[for*="product-"] {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.form-group label[for*="product-"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.form-group label[for*="product-"]:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%);
    transform: translateX(8px);
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.form-group label[for*="product-"]:hover::before {
    width: 100%;
}

.form-group input[type="checkbox"]:checked ~ label[for*="product-"],
.form-group label[for*="product-"]:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Product Images Gallery */
.product-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 2px dashed var(--border-color);
    min-height: 150px;
    transition: all 0.3s ease;
}

.product-images-gallery:has(.product-image-item:hover) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.product-image-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    border: 2px solid var(--primary-color);
}

.product-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-image-item:hover img {
    transform: scale(1.1);
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    font-weight: bold;
    line-height: 1;
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.remove-image-btn:active {
    transform: scale(0.95) rotate(90deg);
}

/* Recent Section */
.recent-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-section h2 {
    margin-bottom: 1.5rem;
}

/* Order Detail */
.order-detail {
    padding: 1rem 0;
}

.order-detail h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.order-detail p {
    margin: 0.5rem 0;
}

.order-totals {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.order-totals p {
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

/* Featured/Trending Products Cards */
.featured-trending-section h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--dark-color);
}

/* Orders Calendar */
.orders-calendar {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.calendar-day {
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 1rem;
    min-height: 200px;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    background: rgba(220, 53, 69, 0.05);
}

.calendar-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.calendar-day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.calendar-day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.calendar-day-month {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary-color);
}

.calendar-day-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calendar-day-orders {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.calendar-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 1rem 0;
}

.calendar-order-item {
    background: white;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.calendar-order-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateX(2px);
}

.calendar-order-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calendar-order-info {
    margin-bottom: 0.5rem;
}

.calendar-order-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.calendar-order-customer {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.calendar-order-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-order-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.calendar-order-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.calendar-order-status.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.calendar-order-status.status-shipped {
    background: #e9d5ff;
    color: #6b21a8;
}

.calendar-order-status.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.calendar-order-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive calendar */
@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-day {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Kanban Board Styles */
.kanban-container {
    display: none;
    padding: 1rem 0;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.kanban-column {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 600px;
    border: 1px solid var(--border-color);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.kanban-column-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.kanban-column-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.kanban-column.pending .kanban-column-header {
    border-bottom-color: #f59e0b;
}

.kanban-column.pending .kanban-column-count {
    background: #f59e0b;
}

.kanban-column.processing .kanban-column-header {
    border-bottom-color: #3b82f6;
}

.kanban-column.processing .kanban-column-count {
    background: #3b82f6;
}

.kanban-column.shipped .kanban-column-header {
    border-bottom-color: #8b5cf6;
}

.kanban-column.shipped .kanban-column-count {
    background: #8b5cf6;
}

.kanban-column.delivered .kanban-column-header {
    border-bottom-color: #10b981;
}

.kanban-column.delivered .kanban-column-count {
    background: #10b981;
}

.kanban-column.cancelled .kanban-column-header {
    border-bottom-color: #ef4444;
}

.kanban-column.cancelled .kanban-column-count {
    background: #ef4444;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.kanban-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: move;
    transition: all 0.3s ease;
    border-left: 4px solid var(--border-color);
    user-select: none;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing;
}

.kanban-cards.drag-over {
    background: rgba(34, 197, 94, 0.15);
    border: 2px dashed var(--primary-color);
    border-radius: 0.5rem;
    min-height: 200px;
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.2);
}

.kanban-cards.drag-over .kanban-empty-placeholder {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px dashed var(--primary-color);
    padding: 2rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.05);
}

.kanban-card.pending {
    border-left-color: #f59e0b;
}

.kanban-card.processing {
    border-left-color: #3b82f6;
}

.kanban-card.shipped {
    border-left-color: #8b5cf6;
}

.kanban-card.delivered {
    border-left-color: #10b981;
}

.kanban-card.cancelled {
    border-left-color: #ef4444;
}

/* Shake animation for failed orders */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.kanban-card.failed-payment {
    border-left-color: #ef4444;
    opacity: 0.9;
}

.status-deleted {
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: line-through;
}

.kanban-card-header {
    margin-bottom: 0.5rem;
}

.kanban-card-order-number {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
}

.kanban-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.kanban-card-customer {
    margin-bottom: 0.75rem;
}

.kanban-card-customer-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.kanban-card-customer-email {
    font-size: 0.75rem;
    color: var(--text-light);
}

.kanban-card-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.kanban-card-payment {
    margin-bottom: 0.75rem;
}

.kanban-card-payment-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-card-payment-badge.paid {
    background: #10b981;
    color: white;
}

.kanban-card-payment-badge.pending {
    background: #f59e0b;
    color: white;
}

.kanban-card-payment-badge.failed {
    background: #ef4444;
    color: white;
}

.kanban-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.kanban-card-status-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background: white;
    cursor: pointer;
}

.kanban-card-detail-btn {
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.kanban-card-detail-btn:hover {
    background: #c82333;
}

/* Desktop: View Toggle */
@media (min-width: 769px) {
    .mobile-orders-view {
        display: none;
    }
    
    /* Default: Hide both, show based on view class */
    .desktop-table-view {
        display: none;
    }
    
    .desktop-kanban-view {
        display: none;
    }
    
    /* Default: Show Kanban */
    .desktop-orders-view.view-kanban .desktop-kanban-view {
        display: block !important;
    }
    
    .desktop-orders-view.view-kanban .desktop-table-view {
        display: none !important;
    }
    
    /* Show List */
    .desktop-orders-view.view-list .desktop-kanban-view {
        display: none !important;
    }
    
    .desktop-orders-view.view-list .desktop-table-view {
        display: block !important;
    }
    
    /* View toggle buttons */
    .view-toggle-btn {
        transition: all 0.3s ease;
    }
    
    .view-toggle-btn.active {
        background: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
    }
    
    .view-toggle-btn:not(.active) {
        background: white !important;
        color: var(--text-color) !important;
    }
    
    .view-toggle-btn:not(.active):hover {
        background: var(--light-color) !important;
    }
    
    /* Dashboard view toggle styles */
    .dashboard-view-toggle-btn {
        padding: 0.625rem 1.25rem;
        border: 2px solid var(--border-color);
        background: white;
        cursor: pointer;
        font-size: 0.875rem;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .dashboard-view-toggle-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
        transform: translateY(-1px);
        z-index: 1;
    }

    .dashboard-view-toggle-btn:not(.active) {
        background: white;
        color: var(--text-color);
        border-color: var(--border-color);
    }

    .dashboard-view-toggle-btn:not(.active):hover {
        background: var(--light-color);
        border-color: var(--primary-color);
        color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .dashboard-view-toggle-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .dashboard-view-toggle-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dashboard-view-toggle-label {
        font-size: 0.875rem;
        color: var(--text-light);
        margin-right: 0.5rem;
        font-weight: 500;
    }

    .dashboard-view-toggle-btn:first-of-type {
        border-radius: 0.25rem 0 0 0.25rem;
    }

    .dashboard-view-toggle-btn:last-of-type {
        border-radius: 0 0.25rem 0.25rem 0;
        border-left: none;
    }
    
    /* Dashboard orders container */
    .dashboard-orders-container {
        position: relative;
    }
    
    .dashboard-orders-container.view-calendar .dashboard-calendar-view {
        display: block;
    }
    
    .dashboard-orders-container.view-calendar .dashboard-list-view {
        display: none;
    }
    
    .dashboard-orders-container.view-list .dashboard-list-view {
        display: block;
    }
    
    .dashboard-orders-container.view-list .dashboard-calendar-view {
        display: none;
    }
    
    /* Dashboard orders list table */
    .dashboard-orders-list table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .dashboard-orders-list table thead tr {
        background: var(--primary-color);
        color: white;
    }
    
    .dashboard-orders-list table tbody tr:hover {
        background: var(--light-color);
    }
}

/* Hide view toggle on mobile */
@media (max-width: 768px) {
    .view-toggle-container {
        display: none !important;
    }
    
    /* Dashboard view toggle - hide on mobile */
    .dashboard-view-toggle-container {
        display: none !important;
    }
    
    /* Dashboard - always show list view on mobile */
    .dashboard-orders-container.view-calendar .dashboard-list-view {
        display: block !important;
    }
    
    .dashboard-orders-container.view-calendar .dashboard-calendar-view {
        display: none !important;
    }
}

/* Mobile: Show Table, Hide Kanban */
@media (max-width: 768px) {
    .desktop-orders-view {
        display: none;
    }
    
    .mobile-orders-view {
        display: block;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.sidebar-open,
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-sidebar.sidebar-open ~ .admin-main,
    .admin-sidebar.mobile-open ~ .admin-main {
        margin-left: 0;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
        padding-top: 1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
    }
    
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--primary-color) !important;
        color: white !important;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
        cursor: pointer;
        font-size: 1.25rem;
        transition: background 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-menu-toggle:hover {
        background: #c82333 !important;
    }
    
    .admin-header > div {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .admin-header h1 {
        margin: 0;
        flex: 1;
    }

    .admin-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    .admin-header .btn {
        width: 100%;
    }
    
    /* Hide any toggle buttons in header on mobile */
    .admin-header button[class*="toggle"],
    .admin-header button[id*="toggle"],
    .admin-header button[class*="menu"],
    .admin-header button[id*="menu"],
    .admin-header button[style*="primary"],
    .admin-header button[style*="#dc3545"] {
        display: none !important;
    }

    .admin-logo {
        padding: 1.5rem 1rem;
    }

    .admin-logo h2 {
        font-size: 1.25rem;
    }

    .nav-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .nav-item span {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    table {
        font-size: 0.8rem;
        min-width: 600px;
        width: 100%;
    }

    th, td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    /* Better table scrolling indicator */
    .table-container::-webkit-scrollbar {
        height: 8px;
    }

    .table-container::-webkit-scrollbar-track {
        background: var(--light-color);
    }

    .table-container::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .search-section {
        padding: 0.75rem;
    }

    .search-section input {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
        padding-right: 2.5rem;
    }

    .filter-section {
        padding: 0.75rem;
        overflow-x: auto;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .featured-trending-section {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .featured-products-card,
    .trending-products-card {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
        max-height: 85vh;
    }

    .admin-user {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .admin-user button {
        width: 100%;
    }

    /* Product edit page specific */
    #product-description-editor {
        height: 250px;
    }

    #product-description-editor .ql-editor {
        min-height: 200px;
        font-size: 0.875rem;
    }

    #product-description-editor .ql-toolbar {
        padding: 0.5rem;
        flex-wrap: wrap;
    }

    #product-description-editor .ql-toolbar .ql-formats {
        margin-right: 0.5rem;
        margin-bottom: 0.25rem;
    }

    /* Form buttons on mobile */
    .form-group[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .form-group[style*="display: flex"] .btn {
        width: 100%;
    }

    /* Modal improvements */
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Status badges on mobile */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

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

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

