* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4a6fa5;
    --secondary: #166088;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --dark: #343a40;
    --light: #f8f9fa;
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: var(--dark);
    overflow-x: hidden;
}

/* Login Page Styles */
.login-page-container {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-direction: column;
}

.login-box {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(74, 111, 165, 0.3);
}

.login-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--secondary);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.admin-nav ul {
    list-style: none;
    padding: 20px 0;
}

.admin-nav li {
    margin-bottom: 5px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: white;
}

.admin-nav i {
    width: 20px;
    text-align: center;
}

.admin-logout {
    position: absolute;
    bottom: 30px;
    width: 100%;
    padding: 0 25px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-menu-toggle.active {
    background: rgba(255,255,255,0.3);
}

.admin-logout a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-logout a:hover {
    background: rgba(255,255,255,0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 0px);
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.admin-profile i {
    font-size: 2rem;
    color: var(--primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Management Sections */
.management-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--primary);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #218838;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background: var(--primary);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.edit-btn {
    background: var(--warning);
    color: black;
}

.delete-btn {
    background: var(--danger);
    color: white;
}

/* Gallery Upload */
.gallery-upload {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.progress-bar {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.setting-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.setting-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.image-preview {
    margin-top: 10px;
    min-height: 100px;
    border: 1px dashed #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.close-modal:hover {
    color: #ffcccc;
    background: rgba(255,255,255,0.3);
}

.modal-content form {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-content.large-modal {
    max-width: 900px;
    width: 95%;
}

/* Order Management Modal Styles */
.order-detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.order-detail-item {
    text-align: center;
}

.order-detail-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.order-detail-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.order-section {
    margin-bottom: 25px;
}

.order-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff1493;
}

.order-items-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
    font-weight: 600;
}

.order-item-qty {
    color: #666;
    min-width: 60px;
}

.order-item-price {
    font-weight: bold;
    color: var(--danger);
    min-width: 80px;
    text-align: right;
}

.delivery-info {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff1493;
}

.delivery-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.delivery-info-label {
    font-weight: 600;
    color: var(--dark);
}

.delivery-info-value {
    color: #666;
    text-align: right;
}

.transaction-proof {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 15px;
}

.transaction-proof h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.transaction-proof-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.transaction-proof-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.proof-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.proof-value {
    color: #666;
    word-break: break-all;
}

.screenshot-preview {
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
    max-width: 300px;
}

.screenshot-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.status-controls {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.status-control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.status-control-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.status-control-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.status-control-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.modal-actions button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm {
    background: var(--success);
    color: white;
}

.btn-confirm:hover {
    background: #218838;
}

.btn-view-map {
    background: #17a2b8;
    color: white;
}

.btn-view-map:hover {
    background: #138496;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        overflow: visible;
    }

    .logo h2,
    .logo p,
    .admin-nav a span,
    .admin-logout a span {
        display: none;
    }

    .main-content {
        margin-left: 70px;
    }

    .admin-nav a {
        justify-content: center;
        padding: 15px;
    }

    .admin-nav i {
        width: auto;
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .management-section {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px 5px;
    }
}

/* Filter Styles */
.filter-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-group select:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.1);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .admin-nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 15px;
    }
    
    .admin-nav ul li {
        margin-bottom: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .date-filter {
        flex-direction: column;
        gap: 10px;
    }
}

/* Mobile Phones (< 768px) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    /* Mobile Sidebar */
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        z-index: 1000;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo {
        padding: 5px 0;
        margin: 0;
    }
    
    .logo h2 {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .logo p {
        display: none;
    }
    
    .admin-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0;
    }
    
    .admin-nav.active {
        max-height: 500px;
    }
    
    .admin-nav ul {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }
    
    .admin-nav ul li {
        margin: 0;
    }
    
    .admin-nav ul li a {
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .admin-logout {
        padding: 10px 15px;
        position: static;
        width: auto;
    }
    
    .admin-logout a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Main Content */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .header-left h1 {
        font-size: 1.3rem;
    }
    
    .admin-profile {
        font-size: 0.85rem;
    }
    
    /* Dashboard Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    /* Forms */
    .section-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 8px 5px;
    }
    
    table th {
        font-size: 0.8rem;
    }
    
    /* Hide less important columns on mobile */
    table th:nth-child(3),
    table td:nth-child(3) {
        display: none;
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        width: 100%;
    }
    
    .action-btn i {
        margin-right: 2px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* Date Filter */
    .date-filter {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-filter input,
    .date-filter select {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
    
    /* Modals */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }
    
    /* Gallery Upload */
    .upload-area {
        min-height: 150px;
    }
    
    .upload-area p {
        font-size: 0.9rem;
    }
    
    /* Notifications */
    .notification {
        left: 10px;
        right: 10px;
        top: 70px;
        width: auto;
    }
    
    /* Status Badge */
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Product Images Management */
.section-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

#imageUploadArea {
    margin-top: 30px;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.image-slot {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.image-slot:hover {
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.2);
    transform: translateY(-5px);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border: 3px dashed #999;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 2rem;
    color: #999;
    transition: all 0.3s ease;
}

.image-slot:hover .image-placeholder {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.05), rgba(74, 111, 165, 0.02));
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.image-placeholder i {
    font-size: 2.5rem;
}

.image-placeholder p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
}

.image-input {
    display: none;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
    margin: 5px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    background: linear-gradient(135deg, var(--primary), #357ba3);
    color: white;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.carousel-preview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.carousel-preview h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.preview-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.preview-carousel img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preview-controls button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.preview-controls button:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.preview-controls span {
    font-weight: 600;
    color: var(--dark);
    min-width: 80px;
    text-align: center;
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
    .admin-header h1 {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
    }
    
    table th,
    table td {
        padding: 6px 3px;
    }
    
    .action-btn {
        padding: 5px 6px;
        font-size: 0.7rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }

    .image-upload-grid {
        grid-template-columns: 1fr;
    }

    .preview-carousel img {
        max-width: 100%;
    }
}