/**
 * Member Portal Styles
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.member-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.member-header h1 {
    color: var(--text-color);
}

.btn-logout {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c82333;
}

/* Points Card */
.points-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.points-icon {
    font-size: 60px;
}

.points-info h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.points-value {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.points-info p {
    opacity: 0.9;
    font-size: 14px;
}

/* Info Card */
.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    width: 150px;
    color: var(--text-muted);
}

.info-value {
    flex: 1;
    color: var(--text-color);
}

/* History Card */
.history-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: var(--primary-color);
    color: white;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table tbody tr:hover {
    background: var(--light-bg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .points-card {
        flex-direction: column;
        text-align: center;
    }

    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .history-table {
        font-size: 14px;
    }

    .history-table th,
    .history-table td {
        padding: 8px;
    }
}

