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

html {
    scroll-behavior: smooth;
}

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

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

/* Header/Navbar */
.header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 30px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
}

/* Site logo image */
.site-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.navbar {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

/* Responsive mobile nav behavior */
@media (max-width: 768px) {
    .header .container {
        position: relative;
        align-items: center;
    }

    .menu-toggle {
        display: block;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        padding: 8px 10px;
        border-radius: 8px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 300;
    }

    .menu-toggle.open {
        background: rgba(255,255,255,0.12);
    }

    .logo h1 {
        font-size: 18px;
    }

    .navbar {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 12px;
        background: white;
        color: #333;
        flex-direction: column;
        padding: 10px;
        gap: 6px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        z-index: 250;
        min-width: 180px;
    }

    .navbar.open {
        display: flex;
    }

    .navbar .nav-link {
        color: #333;
        background: transparent;
        padding: 8px 12px;
        border-radius: 6px;
        text-align: left;
    }

    .navbar .nav-link.active {
        background-color: #27ae60;
        color: white;
    }

    /* make sure logo image is left and toggle is right */
    .logo {
        order: 1;
    }

    .navbar {
        order: 3;
    }

    .menu-toggle {
        order: 2;
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}

.user-info {
    color: white;
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cart-modal {
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

/* Login Form */
.login-form {
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    color: #27ae60;
    margin-bottom: 20px;
}

.info-text {
    background-color: #e8f8f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #27ae60;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 5px rgba(39, 174, 96, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background-color: #27ae60;
    color: white;
}

.btn-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    flex: none;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    flex: none;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

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

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

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

/* Products Grid */
.main-content h2 {
    color: #27ae60;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #27ae60;
    background-color: white;
    color: #27ae60;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: #f0f8f5;
}

.filter-btn.active {
    background-color: #27ae60;
    color: white;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* Search Box */
.search-box-container {
    position: relative;
    margin-bottom: 30px;
}

.search-box {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-box:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.15);
}

.search-box-container i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    pointer-events: none;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.contact-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #ffd700;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-item p {
    font-size: 14px;
    line-height: 1.6;
}

.contact-item a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(39, 174, 96, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ecf0f1;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.product-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    transition: color 0.2s ease;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card:hover .product-name {
    color: #27ae60;
}

.product-category {
    display: inline-block;
    background-color: #e8f8f5;
    color: #27ae60;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 600;
    width: fit-content;

}

.product-price {
    font-size: 18px;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-stock {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-stock.low {
    color: #e74c3c;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.product-card .btn {
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    font-size: 12px;
}

.product-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
}

.product-card .btn-secondary {
    opacity: 0.6;
    cursor: not-allowed;
}}

/* Advertisement Section */
.ads-section {
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* Advertisement Styles */
.ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.ad-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ad-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ecf0f1;
    display: block;
}

@media (max-width: 768px) {
    .ads-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ads-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* Orders Container */
.orders-container {
    display: grid;
    gap: 20px;
}

.order-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #27ae60;
}

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

.order-id {
    font-weight: bold;
    color: #333;
}

.order-date {
    font-size: 12px;
    color: #7f8c8d;
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.confirmed {
    background-color: #d4edda;
    color: #155724;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.order-item-name {
    font-weight: bold;
    color: #333;
}

.order-item-details {
    font-size: 14px;
    color: #7f8c8d;
}

.order-total {
    text-align: right;
    font-size: 18px;
    color: #27ae60;
    font-weight: bold;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
}

.order-address {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

.order-address strong {
    display: block;
    color: #27ae60;
    margin-bottom: 5px;
}

/* Admin Styles */
.admin-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h3 {
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #e8f8f5;
    padding-bottom: 10px;
}

.admin-form {

    /* Admin Dashboard Stats */
    .admin-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .stat-card {
        background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
        border-left: 4px solid #27ae60;
        padding: 20px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(39, 174, 96, 0.15);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        background-color: #e8f8f5;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #27ae60;
    }

    .stat-icon.pending {
        background-color: #fff3cd;
        color: #ffc107;
    }

    .stat-icon.completed {
        background-color: #d4edda;
        color: #28a745;
    }

    .stat-content h3 {
        font-size: 13px;
        color: #666;
        margin: 0 0 5px 0;
        border: none;
        padding: 0;
    }

    .stat-number {
        font-size: 28px;
        font-weight: bold;
        color: #27ae60;
        margin: 0;
    }

    /* Orders Table */
    .orders-table-container {
        overflow-x: auto;
    }

    .orders-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }

    .orders-table thead {
        background-color: #e8f8f5;
    }

    .orders-table th {
        padding: 12px;
        text-align: left;
        font-weight: 600;
        color: #27ae60;
        border-bottom: 2px solid #27ae60;
    }

    .orders-table td {
        padding: 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .orders-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 5px;
    }

    .btn-success {
        background-color: #28a745;
        color: white;
        border: none;
    }

    .btn-success:hover {
        background-color: #218838;
    }

    .btn-info {
        background-color: #17a2b8;
        color: white;
        border: none;
    }

    .btn-info:hover {
        background-color: #138496;
    }
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.admin-form .form-row {
    margin-bottom: 15px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.products-table thead {
    background-color: #27ae60;
    color: white;
}

.products-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.products-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.products-table tbody tr:hover {
    background-color: #f8f9fa;
}

.products-table .action-buttons {
    display: flex;
    gap: 10px;
}

/* Messages */
.error-message {
    color: #e74c3c;
    margin-top: 15px;
    padding: 10px;
    background-color: #fadbd8;
    border-left: 4px solid #e74c3c;
    border-radius: 5px;
}

.success-message {
    color: #27ae60;
    background-color: #d5f4e6;
    border-left: 4px solid #27ae60;
}

.info-message {
    color: #3498db;
    background-color: #d6eaf8;
    border-left: 4px solid #3498db;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar {
        flex: none;
        width: 100%;
    }

    .nav-link {
        flex: 1;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .main-content {
        padding: 20px 0;
    }

    .admin-section {
        padding: 20px;
    }

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

    .products-table {
        font-size: 12px;
    }

    .products-table th,
    .products-table td {
        padding: 10px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Map Info */
.map-info {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Admin Link Visibility */
.admin-link {
    display: none !important;
}

.admin-link.visible {
    display: inline-block !important;
}

/* Image Input Group */
.image-input-group {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background-color: #f8f9fa;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    color: #7f8c8d;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.tab-btn:hover {
    color: #27ae60;
}

.image-tab {
    display: none;
}

.image-tab.active {
    display: block;
}

.image-tab label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.image-tab input[type="file"],
.image-tab input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 8px;
}

.image-tab small {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
}

.image-preview {
    margin-top: 15px;
    text-align: center;
    min-height: 150px;
    border: 2px dashed #27ae60;
    border-radius: 5px;
    padding: 20px;
    background-color: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview-placeholder {
    color: #7f8c8d;
    font-size: 14px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Toast Notifications */
.ui-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ui-toast .toast {
    pointer-events: auto;
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-width: 220px;
    max-width: 320px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-left: 4px solid #27ae60;
}

.ui-toast .toast.info { border-left-color: #17a2b8; }
.ui-toast .toast.success { border-left-color: #28a745; }
.ui-toast .toast.warn { border-left-color: #ffc107; }
.ui-toast .toast.error { border-left-color: #dc3545; }

.toast .toast-icon { font-size: 18px; width: 28px; text-align: center; }
.toast .toast-text { flex: 1; font-size: 14px; }

/* Modal */
.ui-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 3000; }
.ui-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.ui-modal-content { position: relative; background: white; border-radius: 10px; padding: 20px; width: 95%; max-width: 720px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 1; }
.ui-modal-close { position: absolute; right: 12px; top: 8px; background: transparent; border: none; font-size: 24px; cursor: pointer; color: #777; }
.ui-modal-actions { margin-top: 16px; display:flex; gap:8px; justify-content:flex-end; }

@media (max-width: 480px) {
    .ui-modal-content { padding: 14px; width: 92%; }
}

/* Responsive Admin Dashboard */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .orders-table {
        font-size: 13px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px;
    }
    
    .btn-small {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-content h3 {
        font-size: 12px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .orders-table {
        font-size: 12px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 6px;
    }
    
    .btn-small {
        padding: 4px 6px;
        font-size: 10px;
        margin-right: 2px;
    }
}
