﻿#tab-admin-panel .admin-header-center {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

#tab-admin-panel .admin-header-center h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#tab-admin-panel .admin-header-center h2 i {
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
    margin-right: 15px;
}

#tab-admin-panel .admin-header-center p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.admin-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border-radius: 10px;
    font-weight: 700;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
}

.admin-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s ease;
    min-height: 160px;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-stat-card.purple {
    border-color: rgba(102, 126, 234, 0.3);
}

.admin-stat-card.green {
    border-color: rgba(0, 217, 163, 0.3);
}

.admin-stat-card.blue {
    border-color: rgba(52, 152, 219, 0.3);
}

.admin-stat-card.orange {
    border-color: rgba(255, 159, 64, 0.3);
}

.admin-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.admin-stat-card .stat-icon .iconify {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.admin-stat-card.purple .stat-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.1) 100%);
    color: #667eea;
}

.admin-stat-card.green .stat-icon {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.2) 0%, rgba(0, 217, 163, 0.1) 100%);
    color: #00d9a3;
}

.admin-stat-card.blue .stat-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.1) 100%);
    color: #3498db;
}

.admin-stat-card.orange .stat-icon {
    background: linear-gradient(135deg, rgba(255, 159, 64, 0.2) 0%, rgba(255, 159, 64, 0.1) 100%);
    color: #ff9f40;
.admin-stat-card .stat-info {
    flex: 1;
    width: 100%;
}

.admin-stat-card .stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
    line-height: 1;
}

.admin-stat-card .stat-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}   color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table thead {
    background: rgba(102, 126, 234, 0.1);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.admin-table tbody tr {
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.admin-table code {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #667eea;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: rgba(0, 217, 163, 0.2);
    color: #00d9a3;
    border: 1px solid rgba(0, 217, 163, 0.3);
}

.badge-warning {
    background: rgba(255, 159, 64, 0.2);
    color: #ff9f40;
    border: 1px solid rgba(255, 159, 64, 0.3);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.btn-small.btn-primary {
    background: #667eea;
    color: white;
}

.btn-small.btn-success {
    background: #00d9a3;
    color: white;
}

.btn-small.btn-success .iconify {
    color: white !important;
}

.btn-small.btn-warning {
    background: #ff9f40;
    color: white;
}

.btn-small.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .admin-stat-card {
        padding: 20px 15px;
        min-height: 140px;
    }

    .admin-table {
        font-size: 0.85rem;
    }

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

.order-details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px;
    color: white;
}

.order-details-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-number {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-item label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.order-info-item .value {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.order-status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.order-status-badge.completed {
    background: #28a745;
    color: white;
}

.order-status-badge.pending {
    background: #ffc107;
    color: #000;
}

.order-status-badge.cancelled {
    background: #dc3545;
    color: white;
}

.order-products-section {
    margin: 25px 0;
}

.order-products-section h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-product-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.order-product-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.order-product-info {
    flex: 1;
}

.order-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.order-product-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.order-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.order-total-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    text-align: right;
}

.order-total-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.order-total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #28a745;
}

.order-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.order-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-actions .btn-complete {
    background: #28a745;
    color: white;
}

.order-actions .btn-complete:hover {
    background: #218838;
    transform: translateY(-2px);
}

.order-actions .btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.order-actions .btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-actions {
        flex-direction: column;
    }
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-admin-card {
    background: rgba(20, 20, 30, 0.6);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.review-admin-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.review-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.review-admin-user h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.review-admin-rating {
    display: flex;
    gap: 5px;
    font-size: 20px;
}

.review-admin-body {
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.9);
}

.review-admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.review-admin-actions {
    display: flex;
    gap: 10px;
}

.btn-approve {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-reject {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .review-admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .review-admin-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .review-admin-actions {
        width: 100%;
    }

    .btn-approve,
    .btn-reject {
        flex: 1;
    }
}

#order-details-modal .modal-content {
    background: rgba(20, 20, 30, 0.95) !important;
    color: white;
    max-width: 700px !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
}

#order-details-modal .order-details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -20px -20px 20px -20px;
    padding: 25px;
    border-radius: 15px 15px 0 0;
}

#order-details-modal .order-details-header h2 {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

#order-details-modal .order-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: inline-block;
    color: white;
}

#order-details-modal .order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#order-details-modal .order-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#order-details-modal .order-info-item label {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#order-details-modal .order-info-item .value {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 500;
}

#order-details-modal .order-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

#order-details-modal .order-status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

#order-details-modal .order-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

#order-details-modal .order-products-section h3 {
    color: white !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#order-details-modal .order-product-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

#order-details-modal .order-product-name {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

#order-details-modal .order-product-details {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

#order-details-modal .order-product-price {
    color: #10b981 !important;
    font-size: 1.2rem;
    font-weight: 700;
}

#order-details-modal .order-total-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    text-align: right;
}

#order-details-modal .order-total-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

#order-details-modal .order-total-amount {
    color: #10b981 !important;
    font-size: 2rem;
    font-weight: 800;
}

#order-details-modal .order-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#order-details-modal .order-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

#order-details-modal .btn-complete {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    font-weight: 700;
}

#order-details-modal .btn-complete .iconify {
    color: white;
}

#order-details-modal .btn-complete:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.6);
}

#order-details-modal .btn-close {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#order-details-modal .btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-action.reschedule {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.btn-action.reschedule:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.btn-action.complete {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: #4ade80;
}

.btn-action.complete:hover {
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.5);
}

.btn-action.cancel {
    background: linear-gradient(135deg, #ff3b5c 0%, #dc2626 100%);
    border-color: #ff3b5c;
}

.btn-action.cancel:hover {
    box-shadow: 0 4px 15px rgba(255, 59, 92, 0.5);
}

.btn-action.view {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-action.view:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.coupons-grid:has(.empty-state) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* ==================== PRODUCTS MANAGEMENT ==================== */

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

.products-grid:has(.empty-state), 
.products-grid:has(.error-state),
.products-grid:has(.loading) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.product-admin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 1;
}

.product-admin-card.inactive {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

.product-admin-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.product-admin-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-admin-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-admin-info {
    flex: 1;
}

.product-admin-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.product-admin-status {
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: flex-end;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.status-badge.featured {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.product-admin-body {
    margin-bottom: 15px;
}

.product-admin-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.variable-price-badge {
    padding: 4px 8px;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid #a855f7;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.product-admin-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.product-admin-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-admin-actions {
    display: flex;
    gap: 10px;
}

.product-admin-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
}

/* Edit Product Modal */
#edit-product-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#edit-product-modal .form-group {
    margin-bottom: 15px;
}

#edit-product-modal .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

#edit-product-modal .form-group input,
#edit-product-modal .form-group textarea,
#edit-product-modal .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

#edit-product-modal .form-group textarea {
    resize: vertical;
    font-family: inherit;
}

#edit-product-modal .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#edit-product-modal .form-actions button {
    flex: 1;
}

.coupon-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.coupon-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.coupon-card.inactive {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.2);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.coupon-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #667eea;
}

.coupon-code-display .iconify {
    font-size: 1.5rem;
}

.coupon-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    font-weight: 600;
    color: #fff;
}

.coupon-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-icon.btn-danger {
    background: rgba(255, 59, 48, 0.2);
    border-color: #ff3b30;
}

.btn-icon.btn-danger:hover {
    background: rgba(255, 59, 48, 0.4);
}

.btn-icon.btn-warning {
    background: rgba(255, 149, 0, 0.2);
    border-color: #ff9500;
}

.btn-icon.btn-warning:hover {
    background: rgba(255, 149, 0, 0.4);
}

.btn-icon.btn-success {
    background: rgba(52, 199, 89, 0.2);
    border-color: #34c759;
}

.btn-icon.btn-success:hover {
    background: rgba(52, 199, 89, 0.4);
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(52, 199, 89, 0.2);
    color: #34c759;
    border: 1px solid #34c759;
}

.badge-secondary {
    background: rgba(142, 142, 147, 0.2);
    color: #8e8e93;
    border: 1px solid #8e8e93;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex; /* Visible cuando tiene clase 'active' */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.modal-content.coupon-modal {
    max-width: 800px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

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

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-box h4 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #667eea;
}

.stat-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.usage-history h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
}

.usage-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.usage-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-size: 0.9rem;
}

.usage-item div {
    margin-bottom: 5px;
}

.usage-item div:last-child {
    margin-bottom: 0;
}

.usage-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem !important;
}

.empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 15px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    margin: 0;
}

.empty-state .iconify {
    color: rgba(255, 255, 255, 0.3);
}

.blocked-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blocked-slots-grid:has(.empty-state) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.blocked-slot-card {
    background: rgba(255, 59, 92, 0.1);
    border: 2px solid rgba(255, 59, 92, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.blocked-slot-card:hover {
    border-color: rgba(255, 59, 92, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 92, 0.2);
}

.blocked-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.blocked-slot-date,
.blocked-slot-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #ff3b5c;
}

.blocked-slot-date .iconify,
.blocked-slot-time .iconify {
    font-size: 18px;
}

.blocked-slot-reason {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.blocked-slot-reason .iconify {
    margin-top: 2px;
    flex-shrink: 0;
}

.blocked-slot-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.blocked-slot-actions .btn-action.delete {
    background: rgba(255, 59, 92, 0.2);
    color: #ff3b5c;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.blocked-slot-actions .btn-action.delete:hover {
    background: rgba(255, 59, 92, 0.3);
}

@media (max-width: 768px) {
    #order-details-modal .order-info-grid {
        grid-template-columns: 1fr;
    }

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

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

    .coupons-grid {
        grid-template-columns: 1fr;
    }

    .blocked-slots-grid {
        grid-template-columns: 1fr;
    }

    .section-header-with-action {
        flex-direction: column;
        align-items: flex-start;
    }
}