* {
    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;
}

/* 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(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@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: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;
}
