/* PCM Pickleball Club - Custom Styles */

:root {
    --pcm-primary: #198754;
    --pcm-secondary: #6c757d;
    --pcm-success: #198754;
    --pcm-warning: #ffc107;
    --pcm-danger: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Ranking Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a857);
    color: #fff;
}

/* Status Badges */
.status-open {
    background-color: #198754;
}

.status-ongoing {
    background-color: #ffc107;
    color: #333;
}

.status-finished {
    background-color: #6c757d;
}

/* Challenge Cards */
.challenge-card {
    border-left: 4px solid var(--pcm-primary);
    transition: all 0.3s;
}

.challenge-card:hover {
    border-left-color: var(--pcm-warning);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.challenge-card .prize-pool {
    color: var(--pcm-success);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Booking Calendar */
.booking-slot {
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.booking-slot.available {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    cursor: pointer;
}

.booking-slot.booked {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.booking-slot.my-booking {
    background-color: #cce5ff;
    border: 1px solid #b8daff;
}

/* Match Result */
.match-result {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
}

.match-result .team {
    flex: 1;
    text-align: center;
}

.match-result .vs {
    font-weight: bold;
    color: var(--pcm-secondary);
    padding: 0 20px;
}

.match-result .winner {
    color: var(--pcm-success);
    font-weight: bold;
}

/* News Cards */
.news-card {
    border-radius: 10px;
    overflow: hidden;
}

.news-card.pinned {
    border: 2px solid var(--pcm-warning);
}

.news-card .pin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Treasury */
.treasury-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.treasury-box {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.treasury-box.income {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.treasury-box.expense {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.treasury-box.balance {
    background: linear-gradient(135deg, #cce5ff, #b8daff);
}

.treasury-box.deficit {
    background: linear-gradient(135deg, #f8d7da, #dc3545);
    color: white;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive Tables */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* Custom Form Styles */
.form-label {
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pcm-primary);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
}
