/* Admin Dashboard Styles */

.admin-section {
    padding: 60px 0;
    min-height: 70vh;
    background: #f5f6fa;
}

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

.admin-header h1 {
    font-size: 42px;
    color: #222;
    margin-bottom: 10px;
}

.admin-header h1 i {
    color: #E91E8C;
    margin-right: 10px;
}

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

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.stat-info h3 {
    font-size: 32px;
    color: #222;
    margin-bottom: 5px;
}

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

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

.filter-tab {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.filter-tab:hover {
    border-color: #E91E8C;
    color: #E91E8C;
}

.filter-tab.active {
    background: #E91E8C;
    border-color: #E91E8C;
    color: white;
}

.filter-tab i {
    margin-right: 8px;
}

/* Orders Container */
.orders-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.order-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: #E91E8C;
    box-shadow: 0 3px 15px rgba(233, 30, 140, 0.1);
}

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

.order-id {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    font-family: monospace;
}

.order-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

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

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

.status-paid {
    background: #d1ecf1;
    color: #0c5460;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    color: #222;
    font-weight: 500;
}

.order-items {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-items h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.order-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-items li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

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

.order-total {
    font-size: 24px;
    font-weight: 700;
    color: #E91E8C;
    margin-bottom: 20px;
}

.payment-proof {
    margin-bottom: 20px;
}

.payment-proof img {
    max-width: 300px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: transform 0.3s;
}

.payment-proof img:hover {
    transform: scale(1.05);
}

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

.btn-approve {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-approve:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(39,174,96,0.3);
}

.btn-reject {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reject:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231,76,60,0.3);
}

.btn-view {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view:hover {
    background: #2980b9;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .order-actions button {
        width: 100%;
        justify-content: center;
    }

    .admin-header h1 {
        font-size: 32px;
    }

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

    .filter-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .admin-section {
        padding: 40px 0;
    }

    .admin-header h1 {
        font-size: 28px;
    }

    .admin-header p {
        font-size: 14px;
    }

    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .stat-info h3 {
        font-size: 28px;
    }

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

    .filter-tab {
        padding: 8px 15px;
        font-size: 13px;
    }

    .filter-tab i {
        display: none;
    }

    .orders-container {
        padding: 20px;
    }

    .order-card {
        padding: 20px;
    }

    .order-id {
        font-size: 16px;
    }

    .order-status {
        padding: 6px 15px;
        font-size: 11px;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 14px;
    }

    .order-items {
        padding: 12px;
    }

    .order-items h4 {
        font-size: 13px;
    }

    .order-items li {
        font-size: 13px;
        padding: 6px 0;
    }

    .order-total {
        font-size: 20px;
    }

    .order-actions button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
