/* ===== styles.css ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Simple cursor changes that definitely work */
button {
    cursor: crosshair !important;
}

.player-tag {
    cursor: crosshair !important;
}

.time-slot.available {
    cursor: grab !important;
}

.time-slot.available:active {
    cursor: grabbing !important;
}

.add-player-btn {
    cursor: crosshair !important;
}

.sidebar-toggle {
    cursor: crosshair !important;
}

.post-btn {
    cursor: crosshair !important;
}

/* Regular pointer for form inputs to maintain usability */
input[type="text"], 
input[type="password"], 
textarea, 
select {
    cursor: text;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff; /* White background */
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Ensure login form appears above grid */
.login-form {
    position: relative;
    z-index: 10;
    isolation: isolate; /* Create new stacking context */
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100vh;
    background: linear-gradient(180deg, #5A7AD9 0%, #4F68CC 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 3px 0 15px rgba(90, 122, 217, 0.4);
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    margin-bottom: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.sidebar-toggle.active {
    background: #FFBC4C;
    color: #2d3748;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sidebar Panel */
.sidebar-panel {
    position: fixed;
    left: -400px;    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.sidebar-panel.open {
    left: 60px;
}

.sidebar-panel-header {
    background: #f8f9fa;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-panel-header h3 {
    color: #2d3748;
    font-size: 20px;
    margin: 0;
}

.sidebar-panel-content {
    padding: 24px;
}

/* Mobile sidebar panel content adjustments */
@media (max-width: 768px) {
    .sidebar-panel-content {
        padding: 16px;
    }
    
    .admin-section {
        margin-bottom: 24px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .admin-header h4 {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .admin-header .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
}

.admin-section {
    margin-bottom: 32px;
}.admin-section h4 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 16px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}

.admin-info p {
    margin: 0;
    line-height: 1.5;
}

/* Main content adjustment */
.main-content {
    margin-left: 60px;
    transition: margin-left 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 50px;
        padding: 16px 0;
    }

    .sidebar-toggle {
        font-size: 20px;
        padding: 12px;
        /* Larger touch target */
        width: 40px;
        height: 40px;
    }

    .sidebar-panel {
        width: 100vw;
        left: -100vw;
        /* Add backdrop blur when open */
        backdrop-filter: blur(4px);
    }

    .sidebar-panel.open {
        left: 0;
        /* Add overlay background */
        background: rgba(255, 255, 255, 0.95);
    }

    .main-content {
        margin-left: 50px;
    }

    .container {
        padding: 12px;
    }
    
    /* Hide main content when panel is open on mobile */
    .sidebar-panel.open ~ .main-content {
        display: none;
    }
}

/* Header - Force correct layout */
.header {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    flex-direction: row;
    text-align: left;
}

/* Desktop layout - simplified and fixed */
@media (min-width: 769px) {
    .header {
        flex-direction: row !important;
        text-align: left !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 24px !important;
        gap: 20px !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }
    
    .header h1 {
        font-size: 28px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }
    
    .week-nav {
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        order: 2 !important;
        display: flex !important;
    }
    
    .week-nav button {
        padding: 8px 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 8px !important;
    }
    
    .current-week {
        font-weight: 600 !important;
        color: #4F68CC !important;
        margin: 0 12px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

.header h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 600;
}.week-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.week-nav button {
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(90, 122, 217, 0.4);
}

.week-nav button:hover {
    background: linear-gradient(135deg, #4F68CC 0%, #4356B8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 122, 217, 0.5);
}

.week-nav button:disabled {
    background: #e2e8f0;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.current-week {
    font-weight: 600;
    color: #4F68CC;
    margin: 0 12px;
}

/* Login Form */
.login-form {
    background: #ffffff; /* Solid white background - no transparency */
    border-radius: 24px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    margin: 80px auto;
    box-shadow: 
        0 8px 32px rgba(90, 122, 217, 0.15),
        0 4px 16px rgba(255, 188, 76, 0.1),
        0 0 0 1px rgba(90, 122, 217, 0.05);
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
    isolation: isolate;
    /* Remove backdrop blur and transparency */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Keep the subtle floating animation */
    animation: formFloat 6s ease-in-out infinite;
}

@keyframes formFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mobile login form adjustments */
@media (max-width: 768px) {
    .login-form {
        max-width: 95%;
        margin: 40px auto;
        border-radius: 20px;
    }
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5A7AD9 0%, #FFBC4C 50%, #5A7AD9 100%);
    background-size: 200% 100%;
    animation: courtLine 3s ease-in-out infinite;
}

@keyframes courtLine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-header {
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%);
    padding: 48px 40px 40px;
    color: white;
    position: relative;
}

.tennis-icon {
    font-size: 52px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.club-name {
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.club-subtitle {
    font-size: 22px;
    font-weight: 300;
    margin: 8px 0 24px;
    opacity: 0.95;
    letter-spacing: 1px;
}

.club-location {
    font-size: 15px;
    font-weight: 500;
    color: white;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Mobile login header adjustments */
@media (max-width: 768px) {
    .login-header {
        padding: 32px 24px 24px;
    }
    
    .tennis-icon {
        font-size: 44px;
        margin-bottom: 16px;
    }
    
    .club-name {
        font-size: 32px;
    }
    
    .club-subtitle {
        font-size: 18px;
        margin: 6px 0 20px;
    }
    
    .club-location {
        font-size: 13px;
        padding: 8px 16px;
        color: white;
    }
}

.login-content {
    padding: 48px 40px 40px;
}

/* Mobile login content adjustments */
@media (max-width: 768px) {
    .login-content {
        padding: 32px 24px 24px;
    }
}

.login-form input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid #e8f4f8;
    border-radius: 16px;
    font-size: 16px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
    background: #f8fffe;
}

.login-form input:focus {
    outline: none;
    border-color: #5A7AD9;
    box-shadow: 0 0 0 4px rgba(90, 122, 217, 0.1);
    background: white;
}

.login-form input::placeholder {
    color: #94a3b8;
}

.login-form button {
    width: 100%;
    background: linear-gradient(135deg, #FFBC4C 0%, #FFB84D 100%);
    color: #2d3748;
    border: none;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 188, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-form button:hover {
    background: linear-gradient(135deg, #FFB84D 0%, #FFBC4C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 188, 76, 0.4);
}

.login-form button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 18px;
}

/* Mobile form elements adjustments */
@media (max-width: 768px) {
    .login-form input {
        padding: 16px 20px;
        font-size: 16px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .login-form button {
        padding: 18px 20px;
        font-size: 18px;
        border-radius: 12px;
        /* Larger touch target for mobile */
        min-height: 56px;
    }
    
    .button-icon {
        font-size: 20px;
    }
}

.error {
    color: #dc2626;
    margin-top: 8px;
    font-size: 14px;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* Informational (non-bookable) slot, e.g. Thursday 20:00 individual lessons */
.time-slot.note-slot {
    background: #f7f9fc;
    border: 1px dashed #c7d2e0;
    cursor: default;
}
.time-slot.note-slot .slot-note {
    font-style: italic;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 6px 2px 2px;
}

@media (max-width: 900px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
        margin: 0 0 32px;
    }
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.day-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.day-header {
    display: flex;    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    flex-direction: column;
    gap: 8px;
}

.day-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.day-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.day-date {
    font-size: 14px;
    color: #64748b;
}

.skill-legend {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    align-items: center;
}

.skill-indicator {
    display: flex;    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.skill-dot.beginner {
    background: #FFDE63;
}

.skill-dot.regular {
    background: #799EFF;
}

.skill-dot.mixed {
    background: linear-gradient(45deg, #FFDE63 50%, #799EFF 50%);
}

.time-slot {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.time-slot.available {
    background: #f0f9ff;
    border-color: #0ea5e9;
    cursor: pointer;
}.time-slot.available:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.time-slot.unavailable {
    background: #f1f5f9;
    color: #64748b;
    opacity: 0.6;
}

.time-slot.past {
    background: #f1f5f9;
    color: #64748b;
    opacity: 0.6;
}

.time-slot.full {
    background: white;
    border-color: #5A7AD9;
    border-width: 2px;
}

.time-slot.unavailable {
    background: #f8f9fa;
    color: #9ca3af;
    border: 2px dashed #e5e7eb;
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.time-slot.unavailable::before {
    content: '🚫';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0.15;
}

.time-slot.unavailable .slot-capacity {
    font-style: italic;
    font-size: 12px;
    color: #9ca3af;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slot-time {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #FFDE63 0%, #FFBC4C 50%, #FF9F00 100%);
    color: #4A3300;
    padding: 18px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(255, 159, 0, 0.5);
    border: 2px solid rgba(74, 51, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInFromTop 0.6s ease-out;
    transition: all 0.3s ease;
}

.announcement-banner.closing {
    animation: slideOutToTop 0.4s ease-in forwards;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutToTop {
    0% {
        transform: translateY(0);        opacity: 1;
        margin-bottom: 24px;
        padding: 16px 24px;
        max-height: 200px;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
        margin-bottom: 0;
        padding: 0 24px;
        max-height: 0;
    }
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.08) 75%, transparent 75%);
    background-size: 24px 24px;
    animation: slidePattern 25s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

.announcement-content {
    position: relative;
    z-index: 1;
    display: flex;    justify-content: space-between;
    align-items: center;
}

.announcement-text {
    flex: 1;
}

.announcement-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.announcement-details {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    animation: fadeInSlide 0.8s ease-out 0.3s both;
}@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 0.9;
        transform: translateX(0);
    }
}

.announcement-icon {
    font-size: 20px;
    display: inline-block;
}

.announcement-close {
    background: none;
    border: none;
    color: #4A3300;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s;
    margin-left: 16px;
    opacity: 0.9;
    line-height: 1;
}

.announcement-close:hover {
    background: rgba(74, 51, 0, 0.15);
    opacity: 1;
    transform: scale(1.1);
}

.announcement-close:active {
    transform: scale(0.95);
}

/* Add Player Button in Slots */
.add-player-btn {
    background: linear-gradient(135deg, #FF9F00 0%, #E68900 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s;
    box-shadow: 0 3px 8px rgba(255, 159, 0, 0.4);
}

.add-player-btn:hover {
    background: linear-gradient(135deg, #E68900 0%, #CC7700 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 159, 0, 0.5);
}

.slot-capacity {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.player-tag {
    background: #e2e8f0;    color: #475569;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.player-tag .remove-x {
    font-size: 14px;
    font-weight: bold;
    opacity: 0.6;
    margin-left: 2px;
    transition: opacity 0.2s ease;
}

.player-tag:hover .remove-x {
    opacity: 1;
    color: #dc2626;
}

/* Past slot player tags (no remove functionality) */
.time-slot.past .player-tag {
    opacity: 0.7;
    cursor: default;
}

.time-slot.past .player-tag:hover {
    transform: none;
    opacity: 0.7;
}

.player-tag.beginner {
    background: #FEFFC4;
    color: #4A3300;
    border: 2px solid #FFBC4C;
}

.player-tag.regular {
    background: #E8F0FF;
    color: #1E3A8A;
    border: 2px solid #799EFF;
}

.player-tag.unknown {
    background: #FFE0E0;
    color: #8B0000;
    border: 2px solid #FF6B6B;
    font-size: 0.75em;
}

.player-tag:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.player-tag:active {
    transform: scale(0.95);
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    .player-tag {
        padding: 6px 12px;
        font-size: 14px;
        /* Larger touch target */
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 2px;
    }
    
    /* Larger add player button for mobile */
    .add-player-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 12px;
    }
    
    /* Better week navigation buttons */
    .week-nav button {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* Larger sidebar close button */
    .sidebar-panel-header .btn.secondary {
        padding: 8px 12px;
        font-size: 18px;
        min-height: 40px;
        min-width: 40px;
    }
}

/* Admin Panel */
.admin-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* Mobile player grid fix */
@media (max-width: 768px) {
    .players-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.player-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 0; /* Important for flex items */
}

/* Mobile player card adjustments */
@media (max-width: 768px) {
    .player-card {
        padding: 12px;
        gap: 8px;
    }
}

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

.player-card.beginner {
    background: linear-gradient(135deg, #FEFFC4 0%, #FFF8B8 100%);
    border-color: #FFDE63;
}

.player-card.regular {
    background: linear-gradient(135deg, #E8F0FF 0%, #DCE7FF 100%);
    border-color: #799EFF;
}

.player-name {
    font-weight: 600;
    color: #2d3748;
    flex-grow: 1;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* This is important for flex items to allow text truncation */
}

/* Mobile player name adjustments */
@media (max-width: 768px) {
    .player-name {
        font-size: 14px;
        max-width: calc(100% - 80px); /* Account for action buttons */
    }
}

.player-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* Mobile player actions adjustments */
@media (max-width: 768px) {
    .player-actions {
        gap: 4px;
    }
    
    .player-actions button {
        padding: 8px;
        min-width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

.player-actions button {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.player-actions button:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

.player-actions button svg {
    color: #64748b;
    transition: color 0.2s;
}

.player-actions button:hover svg {
    color: #374151;
}

.player-actions button.delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.player-actions button.delete-btn:hover svg {
    color: #dc2626;
}
}

.player-actions button:hover {
    background: rgba(0,0,0,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.modal-header {
    margin-bottom: 16px;
}

.modal-header h3 {
    color: #2d3748;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4f46e5;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn {
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(90, 122, 217, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, #4F68CC 0%, #4356B8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 122, 217, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: #f8fafc;
    color: #374151;
    border: 2px solid #e2e8f0;
}

.btn.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .header {
        padding: 20px 16px 16px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
        border-radius: 16px;
    }
    
    .header h1 {
        font-size: 22px;
        margin: 0;
        line-height: 1.2;
    }
    
    .week-nav {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
    }
    
    .week-nav button {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 12px;
        white-space: nowrap;
    }
    
    .current-week {
        font-size: 16px;
        font-weight: 600;
        margin: 0 8px;
    }

    /* Fix for sidebar panel on mobile */
    .sidebar-panel {
        width: calc(100vw - 50px); /* Account for sidebar width */
        max-width: 100%;
    }
    
    .sidebar-panel.open {
        left: 50px; /* Align with sidebar width on mobile */
    }

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

    .day-card {
        padding: 16px;
    }
    
    /* Mobile time slot improvements */
    .time-slot {
        padding: 20px 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    /* Disable hover transform on mobile for better touch */
    .time-slot.available:hover {
        transform: none;
    }
    
    /* Better modal sizing for mobile */
    .modal-content {
        width: 95%;
        margin: 20px;
        padding: 20px;
    }
    
    /* Larger text for mobile readability */
    .slot-time {
        font-size: 16px;
    }
    
    .slot-capacity {
        font-size: 14px;
    }
    
    .day-name {
        font-size: 20px;
    }
    
    /* Stack modal actions vertically on very small screens */
    @media (max-width: 480px) {
        .modal-actions {
            flex-direction: column;
            gap: 12px;
        }
        
        .modal-actions .btn {
            width: 100%;
        }
    }
}

/* Club Wall Styles */
.club-wall {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.club-wall-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.club-wall-header h2 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.club-wall-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.wall-input-section {
    margin-top: 24px;
    border-top: 2px solid #f1f5f9;
    padding-top: 24px;
}

.wall-form {
    background: #f8fffe;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e8f4f8;
    transition: border-color 0.3s ease;
}

.wall-form:focus-within {
    border-color: #5A7AD9;
}

.wall-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
    background: white;
}

.wall-form input:focus {
    outline: none;
    border-color: #5A7AD9;
}

.wall-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.wall-form textarea:focus {
    outline: none;
    border-color: #5A7AD9;
}

.post-btn {
    background: linear-gradient(135deg, #FFBC4C 0%, #FFB84D 100%);
    color: #2d3748;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 188, 76, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-btn:hover {
    background: linear-gradient(135deg, #FFB84D 0%, #FFBC4C 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 188, 76, 0.4);
}

.post-btn:active {
    transform: translateY(0);
}

.wall-messages {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.wall-messages::-webkit-scrollbar {
    width: 6px;
}

.wall-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.wall-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.wall-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.message-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.message-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-nickname {
    font-weight: 700;
    font-size: 14px;
    /* Color will be set dynamically via JavaScript */
}

.message-timestamp {
    font-size: 12px;
    color: #64748b;
}

.message-content {
    color: #2d3748;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.wall-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.wall-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wall-empty-text {
    font-size: 16px;
    font-weight: 500;
}

/* Mobile adjustments for Club Wall */
@media (max-width: 768px) {
    .club-wall {
        padding: 20px 16px;
        margin-top: 24px;
        border-radius: 12px;
    }
    
    .club-wall-header h2 {
        font-size: 20px;
    }
    
    .wall-form {
        padding: 16px;
    }
    
    .post-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .message-card {
        padding: 14px;
    }
    
    .wall-messages {
        max-height: 400px;
    }
}

/* Confetti Canvas Styling */
canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: 100% !important;
}/* Additional styles to ensure login form is opaque and above grid */
.login-form {
    background-color: #ffffff !important;
    background: #ffffff !important;
    opacity: 1 !important;
    z-index: 100 !important;
    position: relative !important;
    isolation: isolate !important;
}

.login-header {
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%) !important;
    opacity: 1 !important;
}

.login-content {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* Ensure the main app is also above the grid when logged in */
#mainApp {
    position: relative;
    z-index: 10;
    background-color: transparent;
}

/* Fix z-index layering */
body > canvas {
    z-index: -1 !important;
    position: fixed !important;
}

/* ===== modal-styles.css ===== */
/* Beautiful Tennis Club Modal Styles */

/* Override the basic modal with tennis club styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    animation: modalFadeIn 0.3s ease-out;
    /* Always center the modal content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: none"] {
    display: none !important;
}

.modal[style*="display: flex"], 
.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 
        0 20px 60px rgba(90, 122, 217, 0.25),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Beautiful header with tennis club branding */
.modal-header {
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%);
    color: white;
    padding: 24px 28px 20px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%);
    background-size: 20px 20px;
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {
    content: '🎾';
    font-size: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.close:active {
    transform: scale(0.95);
}

/* Modal body styling */
.modal-body {
    padding: 28px;
}

.slot-details h4 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 2px solid #0ea5e9;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8f4f8;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fffe;
    color: #2d3748;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select:focus {
    outline: none;
    border-color: #5A7AD9;
    box-shadow: 0 0 0 4px rgba(90, 122, 217, 0.1);
    background: white;
}

/* Current players section */
.current-players h5 {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.current-players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.current-players-list .player-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.current-players-list .player-tag.beginner {
    background: linear-gradient(135deg, #FEFFC4 0%, #FFF8B8 100%);
    color: #4A3300;
    border-color: rgba(255, 222, 99, 0.3);
}

.current-players-list .player-tag.regular {
    background: linear-gradient(135deg, #E8F0FF 0%, #DCE7FF 100%);
    color: #1E3A8A;
    border-color: rgba(121, 158, 255, 0.3);
}

.current-players-list .player-tag .remove-x {
    font-size: 14px;
    font-weight: bold;
    opacity: 0.6;
    margin-left: 2px;
    transition: opacity 0.2s ease;
}

.current-players-list .player-tag:hover .remove-x {
    opacity: 1;
    color: #dc2626;
}

.current-players-list .player-tag.beginner .remove-x:hover {
    color: #b91c1c;
}

.current-players-list .player-tag.regular .remove-x:hover {
    color: #b91c1c;
}

/* Modal footer */
.modal-footer {
    padding: 0 28px 28px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.modal-footer .btn.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.modal-footer .btn.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
}

.modal-footer .btn:not(.secondary) {
    background: linear-gradient(135deg, #FFBC4C 0%, #FFB84D 100%);
    color: #2d3748;
    box-shadow: 0 4px 16px rgba(255, 188, 76, 0.3);
}

.modal-footer .btn:not(.secondary):hover {
    background: linear-gradient(135deg, #FFB84D 0%, #FFBC4C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 188, 76, 0.4);
}

.modal-footer .btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 20px 24px 16px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
    
    .modal-footer {
        padding: 0 20px 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 16px 24px;
        min-width: auto;
    }
    
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 16px 18px;
    }
}
/* ===== booking-loading.css ===== */
/* Beautiful Loading States for Tennis Club Booking */

/* Loading button states */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

.btn.loading.secondary::after {
    color: #64748b;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tennis-themed loading spinner */
.tennis-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.tennis-ball-spinner {
    font-size: 16px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Modal loading overlay */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: #2d3748;
}

.loading-content .tennis-ball-spinner {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.loading-content .loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #4F68CC;
}

.loading-content .loading-subtext {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* Success animation */
.booking-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    opacity: 0;
    visibility: hidden;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

.booking-success.show {
    opacity: 1;
    visibility: visible;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Disabled form state */
.form-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-disabled select,
.form-disabled input {
    background-color: #f8fafc !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Error state */
.booking-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    display: none;
    animation: slideInError 0.3s ease-out;
}

.booking-error.show {
    display: block;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile loading adjustments */
@media (max-width: 768px) {
    .btn.loading::after {
        width: 18px;
        height: 18px;
        margin-left: -9px;
        margin-top: -9px;
    }
    
    .loading-content .tennis-ball-spinner {
        font-size: 28px;
    }
    
    .loading-content .loading-text {
        font-size: 15px;
    }
    
    .booking-success {
        padding: 14px 20px;
        font-size: 15px;
    }
}
/* ===== club-wall-styles.css ===== */
/* Club Wall Message Modal Styles */
#messageModal .modal-content {
    max-width: 500px;
    width: 90%;
}

#messageModal .form-group {
    margin-bottom: 16px;
}

#messageModal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

#messageModal input,
#messageModal textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#messageModal input:focus,
#messageModal textarea:focus {
    outline: none;
    border-color: #5A7AD9;
    box-shadow: 0 0 0 3px rgba(90, 122, 217, 0.1);
}

#messageModal textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.char-count {
    text-align: right;
    margin-top: 4px;
}

.char-count span {
    font-size: 12px;
    color: #6b7280;
}

/* Club Messages Container */
.messages-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.club-message {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.club-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-author {
    font-weight: 600;
    color: #5A7AD9;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: #64748b;
}

.message-content {
    color: #2d3748;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* No Messages State */
.no-messages {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-messages-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-messages-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.no-messages-subtitle {
    font-size: 14px;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #messageModal .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .messages-container {
        max-height: 300px;
    }
    
    .club-message {
        padding: 12px;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .no-messages {
        padding: 30px 16px;
    }
    
    .no-messages-icon {
        font-size: 36px;
    }
}

/* Scrollbar Styling for Messages Container */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for new messages */
.club-message {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== main-club-wall-styles.css ===== */
/* Main Page Club Wall Styles */
.club-wall-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.club-wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.club-wall-header h2 {
    color: #2d3748;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.club-wall-header .btn {
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 122, 217, 0.3);
}

.club-wall-header .btn:hover {
    background: linear-gradient(135deg, #4F68CC 0%, #3E5BA9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 122, 217, 0.4);
}

/* Messages container specific to main page */
.club-wall-section .messages-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 8px 0;
}

/* Enhanced message cards for main page */
.club-wall-section .club-message {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.club-wall-section .club-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #5A7AD9 0%, #4F68CC 100%);
}

.club-wall-section .club-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #5A7AD9;
}

.club-wall-section .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.club-wall-section .message-author {
    font-weight: 700;
    color: #5A7AD9;
    font-size: 15px;
}

.club-wall-section .message-time {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.club-wall-section .message-content {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Enhanced no messages state */
.club-wall-section .no-messages {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.club-wall-section .no-messages-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.club-wall-section .no-messages-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.club-wall-section .no-messages-subtitle {
    font-size: 15px;
    opacity: 0.8;
}

/* Mobile responsive for main club wall */
@media (max-width: 768px) {
    .club-wall-section {
        margin: 16px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .club-wall-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }
    
    .club-wall-header h2 {
        font-size: 20px;
    }
    
    .club-wall-header .btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .club-wall-section .messages-container {
        max-height: 400px;
    }
    
    .club-wall-section .club-message {
        padding: 16px;
    }
    
    .club-wall-section .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .club-wall-section .no-messages {
        padding: 32px 16px;
    }
    
    .club-wall-section .no-messages-icon {
        font-size: 42px;
    }
}

/* Scrollbar styling for main club wall */
.club-wall-section .messages-container::-webkit-scrollbar {
    width: 8px;
}

.club-wall-section .messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.club-wall-section .messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.club-wall-section .messages-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for new messages on main page */
.club-wall-section .club-message {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Integration with main app layout */
.main-content .club-wall-section {
    max-width: 1200px;
    margin: 24px auto;
}

/* Ensure proper spacing after schedule */
.schedule-grid + .club-wall-section {
    margin-top: 32px;
}
/* ===== instructor-styles.css ===== */
/* Instructor Information Styles - Inline with Day Title */
.day-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.instructor-inline {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    opacity: 0.85;
}

/* Update day card to accommodate instructor */
.day-card {
    min-height: 200px; /* Further reduced since instructor info is now inline */
}

.day-header {
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 16px 20px 12px;
}

/* Mobile responsive instructor info */
@media (max-width: 768px) {
    .day-title {
        font-size: 16px;
    }
    
    .instructor-inline {
        font-size: 10px;
    }
    
    .day-card {
        min-height: 200px;
    }
}

/* Enhanced Tuesday/Thursday styling - Inline */
.day-card[data-day="tuesday"] .instructor-inline {
    color: #047857;
}

.day-card[data-day="thursday"] .instructor-inline {
    color: #6d28d9;
}

/* Unavailable days styling */
.unavailable-text {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    opacity: 0.7;
    font-style: italic;
}

.day-card[data-day="monday"] .unavailable-text,
.day-card[data-day="wednesday"] .unavailable-text {
    color: #6b7280;
}

/* Style the entire Monday and Wednesday cards as unavailable */
.day-card[data-day="monday"],
.day-card[data-day="wednesday"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    opacity: 0.85;
    position: relative;
}

.day-card[data-day="monday"]::after,
.day-card[data-day="wednesday"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    border-radius: 12px;
    pointer-events: none;
}

.day-card[data-day="monday"] .day-header,
.day-card[data-day="wednesday"] .day-header {
    background: transparent;
}

.day-card[data-day="monday"] .skill-legend,
.day-card[data-day="wednesday"] .skill-legend {
    opacity: 0.5;
}

.day-card[data-day="monday"]:hover,
.day-card[data-day="wednesday"]:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* ===== loading-styles.css ===== */
/* Loading Screen Styles */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

.loading-logo h1 {
    margin: 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tennis-ball-bounce {
    font-size: 3rem;
    animation: bounce 1.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

.loading-message {
    margin: 2rem 0;
}

.loading-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-steps {
    margin-top: 2rem;
    text-align: left;
}

.step {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    opacity: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin: 0.3rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step.active {
    opacity: 1;
    transform: translateX(10px);
    color: #FFD700;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #FFD700;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.step.completed {
    opacity: 1;
    color: #00FF88;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #00FF88;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.step.completed::after {
    content: " ✓";
    color: #90EE90;
    margin-left: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-content {
        padding: 1rem;
        max-width: 300px;
    }
    
    .loading-logo h1 {
        font-size: 1.5rem;
    }
    
    .tennis-ball-bounce {
        font-size: 2.5rem;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}
