﻿body {
    background-color: #1d1d1d;
    color: #e5e5e5;
}

/* Main Layout */
.web-layout {
    display: flex;
    height: 100vh;
    background-color: #1d1d1d;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: #1d1d1d;
    color: #ffffff;
    padding: 20px;
    border-right: 1px solid #2e2e2e;
    padding-top: 10px;
    background: #141414;
}

    .sidebar a:hover {
        background: #2a2a2a;
        color: #ffffff;
    }


/* Content area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1d1d1d;
}

/* Main page content */
.page-content {
    padding: 24px;
    overflow-y: auto;
    background: #1d1d1d;
}

/* Card styling */
.card {
    background: #252525;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 20px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1d1d1d;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: #cfcfcf;
    text-decoration: none;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 14px;
}

    .sidebar a:hover {
        background: #242424;
        color: #ffffff;
    }

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/*h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

h2 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
}*/

.activity-container {
    background: #252525;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 16px;
}

.empty-state {
    color: #6b7280;
    text-align: center;
    padding: 40px 0;
}

.page-content-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.action-card {
    background: #252525;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .action-card:hover {
        transform: translateY(-2px);
        border-color: #22c55e;
    }

.action-title {
    font-weight: 600;
    font-size: 16px;
    margin-top: 8px;
}

.action-desc {
    font-size: 13px;
    color: #9ca3af;
}

.hero-title {
    font-size: 18px;
    font-weight: bold;
    color: #5cb032;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

    .hero-title img {
        width: 40px;
    }

.stat-card {
    background: #252525;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

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

.stat-value {
    font-size: 30px;
    font-weight: 600;
    margin-top: 10px;
}

.action-primary {
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.06);
    position: relative;
}

.sidebar a.active {
    background: #1f1f1f;
    border-left: 3px solid #22c55e;
    color: #22c55e;
}

.section-title {
    margin-top: 28px;
    margin-bottom: 14px;
}

.page-content {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar {
    min-height: 64px;
    max-height: 64px;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    border-bottom: 1px solid #2a2a2a;
    font-weight: 500;
}

.logo {
    font-weight: 600;
    font-size: 18px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Login link */
.btn-link {
    color: #cfcfcf;
    text-decoration: none;
}

    .btn-link:hover {
        color: #ffffff;
    }

/* Sign Up button */
.btn-primary {
    background: #4CAF50;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

    .btn-primary:hover {
        background: #16a34a;
    }

/* Profile dropdown */
.profile-menu {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
}

    .profile-menu:hover {
        background: #2a2a2a;
    }

.dropdown {
    position: absolute;
    right: 0;
    top: 42px;
    background: #252525;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

    .dropdown a {
        display: block;
        padding: 8px 16px;
        color: #e5e5e5;
        text-decoration: none;
    }

        .dropdown a:hover {
            background: #2e2e2e;
        }

.dropdown-divider {
    height: 1px;
    background: #2e2e2e;
    margin: 6px 0;
}

.web-layout {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Sidebar default desktop */
.sidebar {
    width: 240px;
    background: #141414;
    border-right: 1px solid #2a2a2a;
    transition: transform 0.3s ease;
}

/* Topbar menu button hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    margin-right: 16px;
}

/* Mobile styles */
@media (max-width: 992px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .menu-toggle {
        display: block;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
    }

    .content-area {
        width: 100%;
    }

    .topbar {
        padding: 0 12px;
    }

    .btn-primary {
        padding: 6px 10px;
        border-radius: 6px;
        font-weight: 500;
        text-decoration: none;
        font-size: 12px;
    }

    .topbar-right a {
        font-size: 14px;
    }

    .page-content {
        padding: 0;
    }
}


.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 14px;
}

.theme-option.selected {
    border-color: #4caf50;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.6), 0 8px 18px rgba(0, 0, 0, 0.6);
    transform: scale(1.03);
}


.theme-option {
    background: #2e2e2e;
    border-radius: 14px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border: 1.5px solid transparent;
}

.theme-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 6px;
    margin-bottom: 2px;
}

.theme-option .theme-option-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    color: #e0e0e0;
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 720px;
    border: 2px solid #000;
}

.coach-dashboard .dash-title,
.coach-dashboard .quick-actions h3,
.coach-dashboard .section-header h4,
.coach-dashboard .section-header h3 {
    font-size: 28px;
    font-weight: 700;
}

.coach-dashboard .dashboard-title {
    margin-top: 24px;
}

@media (min-width: 1200px) {
    .play-bot-container .move-history-container {
        display: block;
        height: auto;
        background: #252525;
        border: 1px solid #2e2e2e;
        border-radius: 12px;
        padding: 0;
        max-height: 450px;
        overflow-y: auto;
        font-size: 14px;
        margin: 8px;
    }
}

/* Each row */
.play-bot-container .move-pair {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    transition: background 0.15s ease;
}

    /* Hover effect */
    .play-bot-container .move-pair:hover {
        background: #1f1f1f;
    }

/* Alternating rows */
.play-bot-container .move-pair {
    background: rgba(255,255,255,0.02);
}

/* White move */
.play-bot-container .white-move {
    flex: 1;
    padding: 4px 8px;
    border-radius: 6px;
    color: #ffffff;
    transition: background 0.15s ease;
}

/* Black move */
.play-bot-container .black-move {
    flex: 1;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: right;
    color: #d1d5db;
    transition: background 0.15s ease;
}

    /* Hover highlight per move */
    .play-bot-container .white-move:hover,
    .play-bot-container .black-move:hover {
        background: #2e2e2e;
        cursor: pointer;
    }
