/**
 * WayPoint Rewards - Custom Styles
 */

:root {
    --wp-primary: #667eea;
    --wp-secondary: #764ba2;
    --wp-accent: #f6ad55;
    --wp-dark: #1a1a2e;
}

/* Body and layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* Navbar customization */
.navbar {
    background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-secondary) 100%) !important;
}

.navbar-brand {
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-weight: 600;
}

/* Stats cards */
.stat-card {
    border-left: 4px solid var(--wp-primary);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wp-primary);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Points balance card */
.points-card {
    background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-secondary) 100%);
    color: white;
    border-radius: 16px;
}

.points-card .points-value {
    font-size: 3rem;
    font-weight: 700;
}

.points-card .points-label {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Reward cards */
.reward-card {
    height: 100%;
}

.reward-card .card-img-top {
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.reward-card .reward-points {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wp-primary);
}

.reward-card .category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom-width: 2px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-secondary) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* Progress bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background: rgba(0,0,0,0.1);
}

.progress-bar {
    background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-secondary) 100%);
}

/* Badge styles */
.badge-points {
    background: var(--wp-accent);
    color: #1a1a2e;
    font-weight: 600;
}

/* Transaction types */
.transaction-earned {
    color: #28a745;
}

.transaction-redeemed {
    color: #dc3545;
}

.transaction-adjustment {
    color: #6c757d;
}

/* Login page */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--wp-dark) 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-secondary) 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    padding: 2rem;
    text-align: center;
}

/* Dashboard widgets */
.dashboard-widget {
    margin-bottom: 1.5rem;
}

.quick-stat {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    text-align: center;
}

.quick-stat i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

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

.leaderboard-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
}

.leaderboard-rank.gold { background: #ffd700; color: #1a1a2e; }
.leaderboard-rank.silver { background: #c0c0c0; color: #1a1a2e; }
.leaderboard-rank.bronze { background: #cd7f32; color: white; }

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Upload area */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--wp-primary);
    background: rgba(102, 126, 234, 0.05);
}

.upload-zone i {
    font-size: 3rem;
    color: var(--wp-primary);
    margin-bottom: 1rem;
}

/* Status badges */
.status-pending { background: #ffc107; color: #1a1a2e; }
.status-processing { background: #17a2b8; color: white; }
.status-completed { background: #28a745; color: white; }
.status-failed { background: #dc3545; color: white; }
.status-fulfilled { background: #28a745; color: white; }
.status-cancelled { background: #6c757d; color: white; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .points-card .points-value {
        font-size: 2rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .reward-card .card-img-top {
        height: 120px;
    }
}
