/* ============================================================
   ELITE FITNESS – DASHBOARD STYLES
   ============================================================ */

/* Dashboard Container */
.dashboard {
    padding-top: 100px;
    padding-bottom: 40px;
    background: var(--bg-body);
    min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.dashboard-header h1 span {
    color: var(--accent);
}

.dashboard-header p {
    color: var(--text-secondary);
}

.member-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
}

.stat-icon {
    font-size: 28px;
    color: var(--accent);
    width: 48px;
    text-align: center;
}

.stat-info .stat-number {
    font-size: 24px;
    font-weight: 800;
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 200, 83, 0.3);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card h3 i {
    color: var(--accent);
    margin-right: 8px;
}

/* Membership Details */
.membership-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row .label {
    color: var(--text-muted);
    font-size: 14px;
}

.detail-row .value {
    font-weight: 600;
    font-size: 14px;
}

.status-badge {
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.active {
    background: rgba(0, 200, 83, 0.2);
    color: var(--accent);
}

.status-badge.expired {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Card Actions */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Discount Input */
.discount-input {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.discount-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    min-height: 44px;
    font-family: var(--font);
}

.discount-input input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Profile Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    min-height: 44px;
    font-family: var(--font);
}

.form-group input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Payment History */
.payment-history {
    max-height: 300px;
    overflow-y: auto;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
    flex-wrap: wrap;
}

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

.payment-details .payment-plan {
    font-weight: 600;
    font-size: 14px;
}

.payment-details .payment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-amount {
    font-weight: 700;
    font-size: 15px;
}

.payment-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 40px;
}

.payment-status.success {
    background: rgba(0, 200, 83, 0.2);
    color: var(--accent);
}

.payment-status.pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa502;
}

.payment-status.failed {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* Footer */
.footer {
    background: var(--bg-body);
    border-top: 1px solid var(--border-light);
    padding: 24px 0;
    margin-top: 24px;
}

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

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

@media (max-width: 768px) {
    .dashboard {
        padding-top: 80px;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

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

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        font-size: 20px;
        width: 36px;
    }

    .stat-info .stat-number {
        font-size: 18px;
    }

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

    .card-actions .btn-primary,
    .card-actions .btn-outline,
    .card-actions .btn-blue {
        width: 100%;
        justify-content: center;
    }

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

    .quick-actions .btn-blue,
    .quick-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .discount-input {
        flex-direction: column;
    }

    .payment-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        padding: 16px;
    }
}

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

    .dashboard-header h1 {
        font-size: 20px;
    }

    .member-avatar img {
        width: 60px;
        height: 60px;
    }
}