/* Custom CSS for Pickleball Club */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.app-logo {
    height: 68px;
    width: 68px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.alert {
    border-radius: 0.5rem;
}

/* Signature canvas styling */
.signature-pad {
    border: 2px dashed #ccc;
    border-radius: 0.375rem;
    background-color: #fafafa;
}

.signature-pad canvas {
    border-radius: 0.375rem;
}

/* Booking calendar */
.time-slot {
    min-height: 60px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background-color: #e9ecef;
}

.time-slot.occupied {
    background-color: #dc3545;
    color: white;
    cursor: not-allowed;
}

.time-slot.selected {
    background-color: #198754;
    color: white;
}

/* Membership status indicators */
.status-active {
    color: #198754;
}

.status-expiring {
    color: #fd7e14;
}

.status-expired {
    color: #dc3545;
}

/* Admin dashboard cards */
.stat-card {
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Loading spinner */
.loading {
    display: none;
}

.loading.active {
    display: inline-block;
}

/* Calendar Booking Styles */
.grid-container {
    display: grid;
    gap: 2px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
}

.time-slot {
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot.available {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.time-slot.available:hover {
    background: #28a745;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.time-slot.booked {
    background: #f8d7da;
    border: 2px solid #dc3545;
    cursor: not-allowed;
    color: #721c24;
    position: relative;
}

.time-slot.booked:hover::after {
    content: attr(data-booked-by);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.time-slot.unavailable {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.time-slot.selected {
    background: #0d6efd;
    color: white;
    border: 2px solid #0a58ca;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.time-header {
    background: #343a40;
    color: white;
    font-weight: bold;
    padding: 12px 8px;
    text-align: center;
    border-radius: 4px;
}

.court-header {
    background: #495057;
    color: white;
    font-weight: bold;
    padding: 12px 8px;
    text-align: center;
    border-radius: 4px;
    min-width: 150px;
}

.legend {
    font-size: 14px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 80px repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .time-slot {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 40px;
    }
}
