/* =========================================================
   通用 style.css
   - 包含共用導覽列、首頁滿版設計、後台管理介面及團隊頁面樣式
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;600;900&family=Noto+Sans+TC:wght@300;400;500&family=Barlow+Condensed:wght@300;400;600;700;800;900&display=swap');

/* CSS Reset & Variables */
:root {
    --bg-dark: #0A192F;
    --accent-yellow: #f4c20d;
    --text-light: #ffffff;
}
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f8f9fa; 
    color: #333; 
}

/* 共用 TOOLBAR (導覽列) */
.navbar {
    background-color: var(--bg-dark);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 15px; 
}
.logo-img {
    height: 45px;
    object-fit: contain; 
}
.vertical-divider {
    width: 2px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.4); 
    border-radius: 1px;
}
.nav-links { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-yellow); }
.menu-toggle { display: none; color: white; font-size: 28px; cursor: pointer; }

/* ==================== 共用主視覺 (首頁與團隊頁) ==================== */

.hero-topline {
    height: 4px;
    background: linear-gradient(to right, #C8A84B, #E8C96A, #C8A84B);
    width: 100%;
}

.hero-section {
    background-color: var(--bg-dark);
    padding: 80px 20px 50px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    min-height: calc(100vh - 75px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* 如果在團隊頁面不需要置中滿版，可加此 class 取消高度限制 */
.hero-auto-height {
    min-height: auto;
}

.hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: rgba(200,168,75,0.8);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title-main {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
}

.hero-title-outline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 25px 0;
}

.hero-accent-bar {
    width: 60px;
    height: 4px;
    background: #C8A84B;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.hero-tagline {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero-section .sub-title {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
    color: #ffffff;
    margin-top: 10px;
}

/* 共用內容區塊 */
section { padding: 80px 20px; max-width: 900px; margin: auto; min-height: 70vh; }
h2 { 
    text-align: center; 
    color: var(--bg-dark); 
    border-bottom: 3px solid var(--accent-yellow); 
    display: inline-block; 
    padding-bottom: 10px; 
    margin-bottom: 40px; 
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* 表單樣式 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--bg-dark); }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-family: inherit;
}
button { 
    background-color: var(--bg-dark); color: white; border: none; padding: 12px 30px; font-size: 1.1rem; 
    font-weight: bold; cursor: pointer; border-radius: 5px; transition: 0.3s; width: 100%;
}
button:hover { background-color: var(--accent-yellow); color: var(--bg-dark); }

/* 最新消息樣式 */
.news-item { background: white; padding: 20px; border-left: 5px solid var(--accent-yellow); margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-radius: 4px; }
.news-date { font-size: 0.9rem; color: #666; margin-bottom: 5px; }

/* 動畫與 RWD 手機版 (通用層) */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; width: 100%; background: var(--bg-dark); position: absolute; top: 75px; left: 0; text-align: center; padding: 20px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-title-main, .hero-title-outline { font-size: 48px; }
    .hero-section .sub-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero-title-main, .hero-title-outline { font-size: 38px; }
}


/* ==================== team.html 專屬樣式 ==================== */
body.page-team {
    background-color: var(--bg-dark, #0A192F);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.page-team .team-full-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
body.page-team .section-divider {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
body.page-team .div-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
body.page-team .div-label {
    background: #C8A84B;
    padding: 10px 30px;
    border-radius: 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #0A192F;
    text-transform: uppercase;
    margin: 0 15px;
}
body.page-team .team-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px 80px;
    box-sizing: border-box;
    animation: fadeInUp 1.2s ease-out;
}
body.page-team .role-list { display: flex; flex-direction: column; }
body.page-team .role-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    transition: background-color 0.3s;
}
body.page-team .role-item:hover { background-color: rgba(255,255,255,0.02); }
body.page-team .role-item:last-child { border-bottom: none; }
body.page-team .role-label {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #C8A84B;
}
body.page-team .role-names { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; }
body.page-team .name-tag {
    font-family: 'Noto Serif TC', serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}
body.page-team .name-sep { color: rgba(200,168,75,0.5); font-size: 14px; }
body.page-team .poster-footer {
    margin-top: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid rgba(200,168,75,0.1);
}
body.page-team .footer-dot-row { display: flex; gap: 8px; align-items: center; }
body.page-team .fdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(200,168,75,0.4); }
body.page-team .fdot.bright { background: #C8A84B; }
body.page-team .footer-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    body.page-team .role-item { grid-template-columns: 1fr; gap: 10px; align-items: start; padding: 16px 10px; }
    body.page-team .role-label { margin-bottom: 4px; font-size: 13px; }
    body.page-team .name-tag { font-size: 18px; }
}


/* ==================== admin.html ==================== */

:root {
            --bg-dark-2: #112240;
            --success: #28a745;
            --danger: #dc3545;
            --info: #00bcd4;
            --muted: #718096;
            --line: #e2e8f0;
            --card: #ffffff;
            --body: #f4f6f9;
        }
body.page-admin * { box-sizing: border-box; }
body.page-admin {
            display: none;
            height: 100vh;
            margin: 0;
            background-color: var(--body);
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color: #2d3748;
        }
body.page-admin .dashboard-nav {
            background: var(--bg-dark);
            color: white;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
            height: 60px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.18);
        }
body.page-admin .nav-left, body.page-admin .nav-right { display: flex; align-items: center; gap: 15px; }
body.page-admin .mobile-menu-toggle {
            display: none;
            background: transparent;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
body.page-admin .nav-title { font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
body.page-admin .admin-pill {
            color: var(--accent-yellow);
            border: 1px solid var(--accent-yellow);
            padding: 2px 9px;
            border-radius: 999px;
            font-size: 0.82rem;
        }
body.page-admin .btn-logout {
            background: transparent;
            border: 1px solid var(--danger);
            color: var(--danger);
            padding: 6px 16px;
            border-radius: 999px;
            cursor: pointer;
            font-weight: 900;
            white-space: nowrap;
        }
body.page-admin .dashboard-content { display: flex; height: calc(100vh - 60px); position: relative; }
body.page-admin .sidebar {
            width: 260px;
            background: white;
            border-right: 1px solid #ddd;
            padding: 18px 0;
            list-style: none;
            margin: 0;
            transition: transform 0.3s ease;
            overflow-y: auto;
            z-index: 90;
        }
body.page-admin .sidebar li {
            padding: 15px 25px;
            cursor: pointer;
            font-weight: 900;
            color: #555;
            transition: 0.2s;
            position: relative;
        }
body.page-admin .sidebar li:hover, body.page-admin .sidebar li.active { background: #f8f9fa; color: var(--bg-dark); }
body.page-admin .sidebar li.active::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background: var(--accent-yellow);
        }
body.page-admin .main-panel {
            flex: 1;
            padding: 30px;
            overflow-y: auto;
            background: var(--body);
            width: calc(100% - 260px);
        }
body.page-admin .view-section { display: none; animation: fadeIn 0.3s ease; }
body.page-admin .view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body.page-admin .page-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
body.page-admin .page-head h2 { margin: 0; color: var(--bg-dark); }
body.page-admin .page-head p { margin: 8px 0 0 0; color: var(--muted); line-height: 1.55; }
body.page-admin .data-card, body.page-admin .stat-card, body.page-admin .form-card, body.page-admin .chart-card {
            background: white;
            border-radius: 14px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border: 1px solid #edf2f7;
        }
body.page-admin .data-card { padding: 25px; margin-bottom: 20px; }
body.page-admin .form-card { padding: 25px; margin-bottom: 20px; border: 2px solid var(--accent-yellow); display: none; }
body.page-admin .form-card.active { display: block; }
body.page-admin .chart-card { padding: 25px; margin-bottom: 20px; }
body.page-admin .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
body.page-admin .stat-card { padding: 18px; position: relative; overflow: hidden; }
body.page-admin .stat-card .label { color: var(--muted); font-weight: 900; font-size: 0.9rem; }
body.page-admin .stat-card .value { color: var(--bg-dark); font-size: 2rem; font-weight: 900; margin-top: 8px; }
body.page-admin .stat-card .hint { color: #a0aec0; font-size: 0.82rem; margin-top: 6px; }
body.page-admin .stat-card::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 80px; height: 80px; border-radius: 50%; background: rgba(244,194,13,0.18); }
body.page-admin .filter-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            margin-bottom: 18px;
            background: #f8fafc;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            padding: 14px;
        }
body.page-admin .search-box, body.page-admin .select-box, body.page-admin .form-group input, body.page-admin .form-group select, body.page-admin .form-group textarea {
            padding: 10px 13px;
            border: 1px solid #cbd5e0;
            border-radius: 9px;
            font-size: 0.96rem;
            background: white;
            font-family: inherit;
        }
body.page-admin .search-box { flex: 1; min-width: 210px; }
body.page-admin .select-box { min-width: 150px; }
body.page-admin .search-box:focus, body.page-admin .select-box:focus, body.page-admin .form-group input:focus, body.page-admin .form-group select:focus, body.page-admin .form-group textarea:focus {
            border-color: var(--accent-yellow);
            box-shadow: 0 0 0 3px rgba(244,194,13,0.18);
            outline: none;
        }
body.page-admin .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.page-admin table { width: 100%; border-collapse: collapse; min-width: 820px; }
body.page-admin th, body.page-admin td { padding: 13px 12px; border-bottom: 1px solid #edf2f7; text-align: left; vertical-align: middle; }
body.page-admin th { background: #fafafa; color: #4a5568; font-size: 0.88rem; white-space: nowrap; }
body.page-admin tr.hover-row { cursor: pointer; transition: 0.2s; }
body.page-admin tr.hover-row:hover { background: #f8fafc; }
body.page-admin .empty-row { text-align: center; color: #888; padding: 28px; }
body.page-admin .badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 9px;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 900;
            white-space: nowrap;
        }
body.page-admin .badge-region { background: #fff8e1; color: #946200; border: 1px solid #ffe082; }
body.page-admin .badge-player { background: #edf7ed; color: #1b7f32; border: 1px solid #b7e1bf; }
body.page-admin .badge-coach { background: #e6f7fb; color: #007d8e; border: 1px solid #94dce8; }
body.page-admin .badge-admin { background: #efe8ff; color: #4f2db3; border: 1px solid #d3c4ff; }
body.page-admin .badge-active { background: #eef9f0; color: #28a745; border: 1px solid #28a745; }
body.page-admin .badge-pending { background: #fff8e1; color: #b78103; border: 1px solid #ffe082; }
body.page-admin .badge-disabled { background: #fdf2f2; color: #d9534f; border: 1px solid #d9534f; }
body.page-admin .badge-elite { background: linear-gradient(135deg, #f4c20d, #d4af37); color: #0A192F; }
body.page-admin .badge-done { background: #eef9f0; color: #28a745; border: 1px solid #28a745; }
body.page-admin .badge-missing { background: #fdf2f2; color: #d9534f; border: 1px solid #d9534f; }
body.page-admin .btn {
            border: none;
            padding: 8px 13px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 900;
            transition: 0.2s;
            white-space: nowrap;
        }
body.page-admin .btn:hover { transform: translateY(-1px); }
body.page-admin .btn-primary { background: var(--bg-dark); color: white; }
body.page-admin .btn-primary:hover { background: var(--accent-yellow); color: var(--bg-dark); }
body.page-admin .btn-success { background: var(--success); color: white; }
body.page-admin .btn-info { background: var(--info); color: white; }
body.page-admin .btn-danger { background: var(--danger); color: white; }
body.page-admin .btn-light { background: #e2e8f0; color: #4a5568; }
body.page-admin .btn-outline { background: white; color: var(--bg-dark); border: 1px solid var(--bg-dark); }
body.page-admin .btn:disabled { background: #e2e8f0; color: #a0aec0; cursor: not-allowed; transform: none; }
body.page-admin .action-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.page-admin .form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
body.page-admin .form-group label { display: block; font-size: 0.88rem; color: #4a5568; font-weight: 900; margin-bottom: 6px; }
body.page-admin .form-group input, body.page-admin .form-group select, body.page-admin .form-group textarea { width: 100%; }
body.page-admin .form-group.full { grid-column: 1 / -1; }
body.page-admin .form-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; border-bottom: 2px solid #edf2f7; padding-bottom: 12px; }
body.page-admin .form-title-row h3 { margin: 0; color: var(--bg-dark); }
body.page-admin .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
body.page-admin .readonly-note { color: #718096; font-size: 0.86rem; line-height: 1.5; margin-top: 8px; }
body.page-admin .performance-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: start; }
body.page-admin .region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.page-admin .region-card { background: #f8fafc; border: 1px solid #edf2f7; border-radius: 12px; padding: 14px; }
body.page-admin .region-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
body.page-admin .progress-outer { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
body.page-admin .progress-inner { height: 100%; width: 0%; background: linear-gradient(90deg, var(--danger), var(--accent-yellow), var(--success)); border-radius: 999px; transition: width 0.4s ease; }
body.page-admin .region-meta { color: #718096; font-size: 0.84rem; margin-top: 8px; line-height: 1.45; }
body.page-admin .chart-box { height: 330px; position: relative; }
body.page-admin .split-detail { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 15px; }
body.page-admin .eval-card-text { position: relative; overflow: hidden; }
body.page-admin .radar-container { box-sizing: border-box; }
body.page-admin .modal-mask {
            position: fixed;
            inset: 0;
            background: rgba(10, 25, 47, 0.58);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 300;
            padding: 18px;
        }
body.page-admin .modal-mask.active { display: flex; }
body.page-admin .modal-card { background: white; width: min(720px, 100%); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.28); padding: 24px; max-height: 90vh; overflow-y: auto; }
@media (max-width: 1100px) {
body.page-admin .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.page-admin .performance-layout { grid-template-columns: 1fr; }
body.page-admin .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

        
}
@media (max-width: 768px) {
body.page-admin .mobile-menu-toggle { display: block; }
body.page-admin .nav-title .title-text { display: none; }
body.page-admin .dashboard-content { flex-direction: column; height: auto; min-height: calc(100vh - 60px); }
body.page-admin .sidebar { position: fixed; top: 60px; left: 0; width: 260px; height: calc(100vh - 60px); transform: translateX(-100%); box-shadow: 5px 0 15px rgba(0,0,0,0.2); }
body.page-admin .sidebar.active { transform: translateX(0); }
body.page-admin .main-panel { width: 100%; padding: 15px; }
body.page-admin .stats-grid, body.page-admin .region-grid, body.page-admin .form-grid { grid-template-columns: 1fr; }
body.page-admin table { min-width: 760px; }
body.page-admin .data-card, body.page-admin .chart-card, body.page-admin .form-card { padding: 16px; }
body.page-admin .split-detail { flex-direction: column; }
body.page-admin .radar-container { border-left: none !important; padding-left: 0 !important; border-top: 1px solid #eee; padding-top: 16px; }

        
}



/* ==================== coach_dashboard.html ==================== */

body.page-coach-dashboard .dashboard-nav { background: var(--bg-dark); color: white; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; height: 60px; box-sizing: border-box;}
body.page-coach-dashboard .nav-left, body.page-coach-dashboard .nav-right { display: flex; align-items: center; gap: 15px; }
body.page-coach-dashboard .mobile-menu-toggle { display: none; background: transparent; border: none; color: white; font-size: 1.8rem; cursor: pointer; padding: 0; line-height: 1; }
body.page-coach-dashboard .nav-title { font-weight: bold; font-size: 1.2rem; display: flex; align-items: center; gap: 10px;}
body.page-coach-dashboard .btn-logout { background: transparent; border: 1px solid #dc3545; color: #dc3545; padding: 5px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; }
body.page-coach-dashboard .dashboard-content { display: flex; height: calc(100vh - 60px); position: relative; }
body.page-coach-dashboard .sidebar { width: 250px; background: white; border-right: 1px solid #ddd; padding: 20px 0; box-sizing: border-box; list-style: none; margin: 0; transition: transform 0.3s ease; overflow-y: auto; z-index: 90;}
body.page-coach-dashboard .sidebar li { padding: 15px 25px; cursor: pointer; font-weight: bold; color: #555; transition: 0.2s; position: relative;}
body.page-coach-dashboard .sidebar li:hover, body.page-coach-dashboard .sidebar li.active { background: #f8f9fa; color: var(--bg-dark); }
body.page-coach-dashboard .sidebar li.active::after { content:''; position: absolute; right: 0; top:0; height: 100%; width: 4px; background: var(--accent-yellow); }
body.page-coach-dashboard .main-panel { flex: 1; padding: 30px; overflow-y: auto; background: #f4f6f9; box-sizing: border-box; width: calc(100% - 250px); }
body.page-coach-dashboard .view-section { display: none; animation: fadeIn 0.3s ease; }
body.page-coach-dashboard .view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
body.page-coach-dashboard .locked-screen { display: none; text-align: center; padding: 100px 20px; }
body.page-coach-dashboard .data-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; box-sizing: border-box; width: 100%; }
body.page-coach-dashboard .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.page-coach-dashboard table { width: 100%; border-collapse: collapse; margin-top: 15px; min-width: 600px; }
body.page-coach-dashboard th, body.page-coach-dashboard td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
body.page-coach-dashboard .hover-row { transition: background 0.2s; cursor: pointer; }
body.page-coach-dashboard .hover-row:hover { background: #f0f4f8; }
body.page-coach-dashboard .filter-controls { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 20px; }
body.page-coach-dashboard .search-box { flex: 1; min-width: 200px; padding: 10px 15px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
body.page-coach-dashboard .search-box:focus { border-color: var(--accent-yellow); outline: none; }
body.page-coach-dashboard .select-box { padding: 10px 15px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 0.95rem; background: white; cursor: pointer; }
body.page-coach-dashboard .filter-elite { display: flex; align-items: center; gap: 8px; background: #fff8e1; border: 1px solid #ffe082; padding: 8px 15px; border-radius: 8px; font-weight: bold; color: #b78103; cursor: pointer; white-space: nowrap;}
body.page-coach-dashboard .filter-elite input { cursor: pointer; width: 16px; height: 16px; accent-color: #f4c20d; }
body.page-coach-dashboard .elite-badge { background: linear-gradient(135deg, #f4c20d, #d4af37); color: #0A192F; font-size: 0.75rem; padding: 3px 8px; border-radius: 12px; font-weight: 900; margin-left: 8px; white-space: nowrap;}
body.page-coach-dashboard .eval-status-badge { padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; white-space: nowrap;}
body.page-coach-dashboard .status-done { background: #eef9f0; color: #28a745; border: 1px solid #28a745; }
body.page-coach-dashboard .status-pending { background: #fdf2f2; color: #d9534f; border: 1px solid #d9534f; }
body.page-coach-dashboard .btn-fill-eval { color: white; border: none; padding: 6px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s; white-space: nowrap;}
body.page-coach-dashboard .btn-eval-add { background: var(--bg-dark); }
body.page-coach-dashboard .btn-eval-add:hover { background: var(--accent-yellow); color: var(--bg-dark); }
body.page-coach-dashboard .btn-eval-edit { background: #00bcd4; }
body.page-coach-dashboard .btn-eval-edit:hover { background: #0097a7; }
body.page-coach-dashboard .eval-form-container { display: none; background: white; padding: 25px; border-radius: 12px; border: 2px solid var(--accent-yellow); box-shadow: 0 10px 25px rgba(0,0,0,0.1); margin-top: 20px; animation: fadeIn 0.3s ease;}
body.page-coach-dashboard .eval-form-container.active { display: block; }
body.page-coach-dashboard .eval-header-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;}
body.page-coach-dashboard .eval-grid { display: grid; grid-template-columns: 1fr; gap: 15px; background: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 20px;}
body.page-coach-dashboard .score-row { display: flex; align-items: center; gap: 15px; }
body.page-coach-dashboard .score-label { width: 160px; font-weight: bold; color: #2d3748; flex-shrink: 0;}
body.page-coach-dashboard .score-slider { flex: 1; cursor: pointer; accent-color: var(--bg-dark); min-width: 100px;}
body.page-coach-dashboard .score-input { width: 70px; padding: 8px; text-align: center; font-size: 1rem; font-weight: bold; border: 1px solid #cbd5e0; border-radius: 6px; }
body.page-coach-dashboard .notes-area { width: 100%; padding: 15px; border: 1px solid #cbd5e0; border-radius: 8px; font-family: inherit; font-size: 1rem; box-sizing: border-box; resize: vertical; min-height: 120px;}
body.page-coach-dashboard .detail-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);}
body.page-coach-dashboard .btn-back { background: #e2e8f0; color: #4a5568; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 0.85rem; transition: 0.2s; white-space: nowrap;}
body.page-coach-dashboard .btn-back:hover { background: #cbd5e0; }
body.page-coach-dashboard .split-layout { display: grid; grid-template-columns: 350px 1fr; gap: 25px; align-items: start; }
body.page-coach-dashboard .left-pane { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
body.page-coach-dashboard .avatar-circle { width: 120px; height: 120px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #a0aec0; margin: 0 auto 15px auto; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
body.page-coach-dashboard .player-info-title { text-align: center; margin: 0 0 5px 0; color: var(--bg-dark); }
body.page-coach-dashboard .player-info-sub { text-align: center; color: #666; margin: 0 0 25px 0; font-size: 0.95rem; }
body.page-coach-dashboard .info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px;}
body.page-coach-dashboard .info-item { display: flex; justify-content: space-between; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; font-size: 0.95rem; }
body.page-coach-dashboard .info-item .lbl { color: #888; font-weight: bold;}
body.page-coach-dashboard .info-item .val { color: #333; font-weight: bold; text-align: right; max-width: 60%; word-break: break-all;}
body.page-coach-dashboard .form-group label { font-size: 0.9rem; color: #4a5568; margin-bottom: 5px; display: block; font-weight: bold;}
body.page-coach-dashboard .form-group input { width: 100%; padding: 10px; border: 1px solid #cbd5e0; border-radius: 6px; box-sizing: border-box; margin-bottom: 15px;}
body.page-coach-dashboard .switch-container { display: flex; align-items: center; gap: 10px; background: #fff8e1; padding: 12px 15px; border-radius: 8px; border: 1px solid #ffe082; margin-bottom: 20px;}
body.page-coach-dashboard .switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0;}
body.page-coach-dashboard .switch input { opacity: 0; width: 0; height: 0; }
body.page-coach-dashboard .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
body.page-coach-dashboard .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
body.page-coach-dashboard input:checked + .slider { background-color: #f4c20d; }
body.page-coach-dashboard input:checked + .slider:before { transform: translateX(20px); }
body.page-coach-dashboard .btn-save { width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; transition: 0.3s; margin-bottom: 10px;}
body.page-coach-dashboard .btn-save.active { background: var(--bg-dark); color: white; cursor: pointer; }
body.page-coach-dashboard .btn-save.active:hover { background: var(--accent-yellow); color: var(--bg-dark); }
body.page-coach-dashboard .btn-save.disabled { background: #e2e8f0; color: #a0aec0; cursor: not-allowed; }
body.page-coach-dashboard .btn-cancel { width: 100%; padding: 12px; background: #fff; color: #d9534f; border: 1px solid #d9534f; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s;}
body.page-coach-dashboard .btn-cancel:hover { background: #fdf2f2; }
body.page-coach-dashboard .right-pane { display: flex; flex-direction: column; gap: 20px; }
body.page-coach-dashboard .report-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
body.page-coach-dashboard .split-detail { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 15px;}
body.page-coach-dashboard .eval-card-text { flex: 1.5; min-width: 250px; position: relative; overflow: hidden; }
body.page-coach-dashboard .grade-badge { position: absolute; top: -10px; right: -15px; font-size: 5rem; font-weight: 900; opacity: 0.08; color: var(--bg-dark); }
body.page-coach-dashboard .radar-container { flex: 1; min-width: 250px; height: 280px; position: relative; box-sizing: border-box; border-left: 1px solid #eee; padding-left: 20px;}
body.page-coach-dashboard .chart-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
body.page-coach-dashboard .chart-wrapper { position: relative; height: 300px; width: 100%; margin-top: 10px; box-sizing: border-box; }
body.page-coach-dashboard .no-data-msg { text-align: center; padding: 50px 20px; color: #a0aec0; background: #f8f9fa; border-radius: 12px; border: 1px dashed #cbd5e0; margin-top: 15px; display: none;}
body.page-coach-dashboard .feature-placeholder { background: white; padding: 40px; border-radius: 12px; text-align: center; color: #718096; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
@media (max-width: 992px) {
body.page-coach-dashboard .split-layout { grid-template-columns: 1fr; }
body.page-coach-dashboard .radar-container { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 20px;}

        
}
@media (max-width: 768px) {
body.page-coach-dashboard .mobile-menu-toggle { display: block; }
body.page-coach-dashboard .nav-title { display: none; }
body.page-coach-dashboard .nav-left, body.page-coach-dashboard .nav-right { gap: 10px; }
body.page-coach-dashboard .dashboard-content { flex-direction: column; height: auto; min-height: calc(100vh - 60px); }
body.page-coach-dashboard .sidebar { position: fixed; top: 60px; left: 0; width: 250px; height: calc(100vh - 60px); z-index: 105; transform: translateX(-100%); box-shadow: 5px 0 15px rgba(0,0,0,0.2); }
body.page-coach-dashboard .sidebar.active { transform: translateX(0); }
body.page-coach-dashboard .main-panel { padding: 15px; width: 100%; }
body.page-coach-dashboard .data-card, body.page-coach-dashboard .left-pane, body.page-coach-dashboard .report-card, body.page-coach-dashboard .chart-card { padding: 15px; }
body.page-coach-dashboard .score-row { flex-direction: column; align-items: flex-start; gap: 8px; background: white; padding: 10px; border-radius: 6px; border: 1px solid #eee;}
body.page-coach-dashboard .score-slider { width: 100%; }
body.page-coach-dashboard .score-label { width: 100%; font-size: 0.95rem;}

        
}



/* ==================== contact.html ==================== */

body.page-contact .name-group { display: flex; gap: 15px; }
body.page-contact .name-group .form-group { flex: 1; }
body.page-contact .error-message { color: #d9534f; font-size: 0.85rem; margin-top: 5px; display: none; }
body.page-contact .input-error { border-color: #d9534f !important; background-color: #fdf2f2; }
@media (max-width: 600px) {
body.page-contact .name-group { flex-direction: column; gap: 0; }
 
}



/* ==================== news.html ==================== */

.news-item {
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
body.page-news .modal-overlay {
            display: none; 
            position: fixed;
            z-index: 2000; 
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(10, 25, 47, 0.85); 
            backdrop-filter: blur(3px); 
            opacity: 0;
            transition: opacity 0.3s ease;
        }
body.page-news .modal-content {
            background-color: #ffffff;
            margin: 10vh auto; 
            padding: 30px 40px;
            border-radius: 8px;
            width: 90%;
            max-width: 600px;
            position: relative;
            border-top: 6px solid var(--accent-yellow); 
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            transform: translateY(-20px);
            transition: transform 0.3s ease;
        }
body.page-news .modal-overlay.show {
            display: block;
            opacity: 1;
        }
body.page-news .modal-overlay.show .modal-content {
            transform: translateY(0);
        }
body.page-news .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            color: #aaa;
            font-size: 32px;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
            transition: color 0.2s ease, transform 0.2s ease;
        }
body.page-news .close-btn:hover {
            color: var(--bg-dark);
            transform: scale(1.1);
        }
body.page-news .modal-title {
            color: var(--bg-dark);
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.5rem;
        }
body.page-news .modal-date {
            color: #888;
            font-size: 0.9rem;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }
body.page-news .modal-body-text {
            line-height: 1.6;
            color: #444;
            white-space: pre-wrap; 
        }



/* ==================== player_dashboard(4).html ==================== */

body.page-player-dashboard .dashboard-nav { 
            background: var(--bg-dark); 
            color: white; 
            padding: 10px 20px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            position: sticky; 
            top: 0; 
            z-index: 100; 
            height: 60px;
            box-sizing: border-box;
        }
body.page-player-dashboard .nav-left, body.page-player-dashboard .nav-right { display: flex; align-items: center; gap: 15px; }
body.page-player-dashboard .mobile-menu-toggle { 
            display: none; 
            background: transparent; 
            border: none; 
            color: white; 
            font-size: 1.8rem; 
            cursor: pointer; 
            padding: 0; 
            line-height: 1;
        }
body.page-player-dashboard .nav-title { font-weight: bold; font-size: 1.2rem; }
body.page-player-dashboard .btn-logout { 
            background: transparent; 
            border: 1px solid #dc3545; 
            color: #dc3545; 
            padding: 5px 15px; 
            border-radius: 20px; 
            cursor: pointer; 
            font-weight: bold; 
            white-space: nowrap; 
        }
body.page-player-dashboard .dashboard-content { display: flex; height: calc(100vh - 60px); position: relative; }
body.page-player-dashboard .sidebar { 
            width: 250px; 
            background: white; 
            border-right: 1px solid #ddd; 
            padding: 20px 0; 
            box-sizing: border-box; 
            list-style: none;
            margin: 0;
            transition: transform 0.3s ease; 
        }
body.page-player-dashboard .sidebar li { padding: 15px 25px; cursor: pointer; font-weight: bold; color: #555; transition: 0.2s; position: relative;}
body.page-player-dashboard .sidebar li:hover, body.page-player-dashboard .sidebar li.active { background: #f8f9fa; color: var(--bg-dark); }
body.page-player-dashboard .sidebar li.active::after { content:''; position: absolute; right: 0; top:0; height: 100%; width: 4px; background: #4CAF50; }
body.page-player-dashboard .main-panel { flex: 1; padding: 30px; overflow-y: auto; background: #f4f6f9; box-sizing: border-box; }
body.page-player-dashboard .view-section { display: none; animation: fadeIn 0.3s ease; }
body.page-player-dashboard .view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
body.page-player-dashboard .welcome-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-left: 5px solid #4CAF50; margin-bottom: 25px;}
body.page-player-dashboard .chart-container { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 25px; position: relative; height: 350px; width: 100%; box-sizing: border-box;}
body.page-player-dashboard .detail-panel { display: none; gap: 20px; animation: fadeIn 0.5s ease; margin-bottom: 30px; }
body.page-player-dashboard .detail-panel.active { display: flex; }
body.page-player-dashboard .eval-card-text { flex: 1.5; background: white; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
body.page-player-dashboard .grade-badge { position: absolute; top: -10px; right: -15px; font-size: 5rem; font-weight: 900; opacity: 0.08; color: var(--bg-dark); }
body.page-player-dashboard .radar-container { flex: 1; background: white; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); min-width: 300px; height: 350px; position: relative; box-sizing: border-box; }
body.page-player-dashboard .feature-placeholder { background: white; padding: 40px; border-radius: 12px; text-align: center; color: #718096; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
body.page-player-dashboard .profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 25px; align-items: start; }
body.page-player-dashboard .profile-card { background: white; padding: 25px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); box-sizing: border-box; border: 1px solid #edf2f7; }
body.page-player-dashboard .profile-summary-card { position: sticky; top: 85px; overflow: hidden; }
body.page-player-dashboard .profile-summary-card::before { content: ''; display: block; height: 72px; background: linear-gradient(135deg, var(--bg-dark), #1f3a5f); margin: -25px -25px 0 -25px; }
body.page-player-dashboard .avatar-circle { width: 118px; height: 118px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #a0aec0; margin: -58px auto 15px auto; border: 5px solid white; box-shadow: 0 8px 18px rgba(0,0,0,0.16); position: relative; z-index: 1; }
body.page-player-dashboard .player-info-title { text-align: center; margin: 0 0 6px 0; color: var(--bg-dark); font-size: 1.55rem; }
body.page-player-dashboard .player-info-sub { text-align: center; color: #666; margin: 0 0 18px 0; font-size: 0.95rem; }
body.page-player-dashboard .profile-status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: #fff8e1; color: #b78103; border: 1px solid #ffe082; border-radius: 999px; padding: 9px 12px; font-weight: 900; box-sizing: border-box; margin-bottom: 18px; }
body.page-player-dashboard .profile-help-box { background: #f8fafc; border: 1px dashed #cbd5e0; color: #4a5568; padding: 14px; border-radius: 12px; line-height: 1.6; font-size: 0.92rem; margin-top: 18px; }
body.page-player-dashboard .profile-content-card { min-height: 520px; }
body.page-player-dashboard .profile-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--accent-yellow); padding-bottom: 12px; margin-bottom: 20px; }
body.page-player-dashboard .profile-section-title h3 { margin: 0; color: var(--bg-dark); }
body.page-player-dashboard .profile-section-title span { font-size: 0.9rem; color: #718096; font-weight: bold; }
body.page-player-dashboard .info-section { background: #f8fafc; border: 1px solid #edf2f7; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
body.page-player-dashboard .info-section h4 { margin: 0 0 12px 0; color: var(--bg-dark); font-size: 1rem; }
body.page-player-dashboard .info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.page-player-dashboard .info-item { background: white; border: 1px solid #edf2f7; border-radius: 10px; padding: 12px 14px; min-height: 64px; box-sizing: border-box; }
body.page-player-dashboard .info-item .lbl { display: block; color: #718096; font-size: 0.82rem; font-weight: 900; margin-bottom: 6px; }
body.page-player-dashboard .info-item .val { display: block; color: #2d3748; font-weight: 900; font-size: 1rem; word-break: break-all; }
body.page-player-dashboard .form-section { background: #f8fafc; border: 1px solid #edf2f7; border-radius: 14px; padding: 18px; margin-bottom: 16px; }
body.page-player-dashboard .form-section h4 { margin: 0 0 15px 0; color: var(--bg-dark); font-size: 1rem; }
body.page-player-dashboard .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.page-player-dashboard .form-group.full { grid-column: span 2; }
body.page-player-dashboard .form-group label { font-size: 0.88rem; color: #4a5568; margin-bottom: 6px; display: block; font-weight: 900; }
body.page-player-dashboard .form-group input { width: 100%; padding: 12px 13px; border: 1px solid #cbd5e0; border-radius: 10px; box-sizing: border-box; font-size: 1rem; background: white; transition: 0.2s; }
body.page-player-dashboard .form-group input:focus { border-color: var(--accent-yellow); box-shadow: 0 0 0 3px rgba(244, 194, 13, 0.18); outline: none; }
body.page-player-dashboard .form-group input[readonly].disabled-input { background-color: #e2e8f0; color: #a0aec0; pointer-events: none; border-color: #e2e8f0; }
body.page-player-dashboard .hover-tooltip { cursor: not-allowed; }
body.page-player-dashboard .form-hint { margin: 10px 0 0 0; color: #718096; font-size: 0.86rem; line-height: 1.5; }
body.page-player-dashboard .btn-fill-eval { color: white; border: none; padding: 6px 15px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s; white-space: nowrap; }
body.page-player-dashboard .btn-eval-edit { background: #00bcd4; }
body.page-player-dashboard .btn-eval-edit:hover { background: #0097a7; transform: translateY(-1px); }
body.page-player-dashboard .btn-save { padding: 13px; border: none; border-radius: 10px; font-size: 1.02rem; font-weight: bold; transition: 0.3s; }
body.page-player-dashboard .btn-save.active { background: var(--bg-dark); color: white; cursor: pointer; }
body.page-player-dashboard .btn-save.active:hover { background: var(--accent-yellow); color: var(--bg-dark); transform: translateY(-1px); }
body.page-player-dashboard .btn-save.disabled { background: #e2e8f0; color: #a0aec0; cursor: not-allowed; }
body.page-player-dashboard .btn-cancel { padding: 13px; background: #fff; color: #d9534f; border: 1px solid #d9534f; border-radius: 10px; cursor: pointer; font-weight: bold; transition: 0.3s; }
body.page-player-dashboard .btn-cancel:hover { background: #fdf2f2; transform: translateY(-1px); }
body.page-player-dashboard .report-card { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 25px; box-sizing: border-box; }
body.page-player-dashboard .split-detail { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 15px; }
body.page-player-dashboard .report-card .eval-card-text { flex: 1.5; min-width: 250px; background: transparent; padding: 0; border-radius: 0; border: none; box-shadow: none; position: relative; overflow: hidden; }
body.page-player-dashboard .report-card .radar-container { flex: 1; min-width: 250px; height: 280px; background: transparent; padding: 0 0 0 20px; border: none; border-left: 1px solid #eee; box-shadow: none; position: relative; box-sizing: border-box; }
body.page-player-dashboard .detail-panel.report-card.active { display: block; }
@media (max-width: 768px) {
body.page-player-dashboard .mobile-menu-toggle { display: block; }
body.page-player-dashboard .nav-title { display: none; }
body.page-player-dashboard .nav-left, body.page-player-dashboard .nav-right { gap: 10px; }
body.page-player-dashboard #welcomeName { margin-right: 0; font-size: 0.95rem; }
body.page-player-dashboard .dashboard-content { flex-direction: column; height: auto; min-height: calc(100vh - 60px); overflow-x: hidden;}
body.page-player-dashboard .sidebar { 
                position: fixed; top: 60px; left: 0; width: 250px; height: calc(100vh - 60px);
                z-index: 90; transform: translateX(-100%); box-shadow: 5px 0 15px rgba(0,0,0,0.2);
            }
body.page-player-dashboard .sidebar.active { transform: translateX(0); }
body.page-player-dashboard .main-panel { padding: 15px; }
body.page-player-dashboard .detail-panel.active { flex-direction: column-reverse; }
body.page-player-dashboard .radar-container, body.page-player-dashboard .eval-card-text { width: 100%; min-width: 100%; }
body.page-player-dashboard .report-card .radar-container { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 20px; }
body.page-player-dashboard .profile-layout { grid-template-columns: 1fr; gap: 15px; }
body.page-player-dashboard .profile-summary-card { position: relative; top: auto; }
body.page-player-dashboard .profile-card { padding: 18px; border-radius: 14px; }
body.page-player-dashboard .profile-summary-card::before { margin: -18px -18px 0 -18px; }
body.page-player-dashboard .info-grid, body.page-player-dashboard .form-grid { grid-template-columns: 1fr; }
body.page-player-dashboard .form-group.full { grid-column: span 1; }
body.page-player-dashboard .chart-container { height: 300px; padding: 15px; }
body.page-player-dashboard .welcome-card { padding: 15px; }

        
}



/* ==================== register.html ==================== */

body.page-register .auth-container { max-width: 600px; margin: 40px auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
body.page-register .auth-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 20px; }
body.page-register .auth-tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; font-weight: bold; color: #888; transition: 0.3s; }
body.page-register .auth-tab.active { color: var(--bg-dark); border-bottom: 3px solid var(--accent-yellow); }
body.page-register .auth-form { display: none; }
body.page-register .auth-form.active { display: block; }
body.page-register .grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
body.page-register .role-selector { display: flex; gap: 20px; margin-bottom: 15px; }
body.page-register .role-selector label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
body.page-register .required { color: red; }

/* ==================== 共用：後台空狀態/占位區置中 ==================== */
body.page-admin .feature-placeholder,
body.page-coach-dashboard .feature-placeholder,
body.page-player-dashboard .feature-placeholder {
    width: 100%;
    min-height: 260px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

body.page-admin .feature-placeholder > *,
body.page-coach-dashboard .feature-placeholder > *,
body.page-player-dashboard .feature-placeholder > * {
    margin-left: auto;
    margin-right: auto;
}

body.page-admin .feature-placeholder h2,
body.page-coach-dashboard .feature-placeholder h2,
body.page-player-dashboard .feature-placeholder h2 {
    position: static;
    left: auto;
    transform: none;
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 0 0 8px 0;
    text-align: center;
}

body.page-admin .feature-placeholder p,
body.page-coach-dashboard .feature-placeholder p,
body.page-player-dashboard .feature-placeholder p {
    width: 100%;
    max-width: 720px;
    margin: 0;
    text-align: center;
    line-height: 1.65;
}

body.page-admin .feature-placeholder span,
body.page-coach-dashboard .feature-placeholder span,
body.page-player-dashboard .feature-placeholder span {
    display: block;
}


/* admin 待處理問題列表 */
body.page-admin .issue-content {
    max-width: 360px;
    max-height: 92px;
    overflow: auto;
    white-space: normal;
    line-height: 1.55;
    color: #4a5568;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 10px;
}

body.page-admin #view-issues table {
    min-width: 1080px;
}

/* ==================== 共用：後台右上角 welcomeName 完整顯示修正 ==================== */
body.page-admin .dashboard-nav,
body.page-coach-dashboard .dashboard-nav,
body.page-player-dashboard .dashboard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: visible;
}

body.page-admin .nav-left,
body.page-coach-dashboard .nav-left,
body.page-player-dashboard .nav-left {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

body.page-admin .nav-right,
body.page-coach-dashboard .nav-right,
body.page-player-dashboard .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    overflow: visible;
}

body.page-admin #welcomeName,
body.page-coach-dashboard #welcomeName,
body.page-player-dashboard #welcomeName {
    display: inline-block;
    flex: 0 0 auto;
    max-width: none !important;
    min-width: max-content;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    word-break: keep-all;
    line-height: 1.2;
    font-weight: 900;
    text-align: right;
}

body.page-admin .btn-logout,
body.page-coach-dashboard .btn-logout,
body.page-player-dashboard .btn-logout {
    flex: 0 0 auto;
    white-space: nowrap;
}

body.page-admin .admin-pill,
body.page-coach-dashboard #regionBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    word-break: keep-all;
    writing-mode: horizontal-tb;
    flex: 0 0 auto;
    line-height: 1.2;
}

body.page-admin .nav-title,
body.page-coach-dashboard .nav-title,
body.page-player-dashboard .nav-title {
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

body.page-admin .nav-title .title-text,
body.page-coach-dashboard .nav-title,
body.page-player-dashboard .nav-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    body.page-admin .dashboard-nav,
    body.page-coach-dashboard .dashboard-nav,
    body.page-player-dashboard .dashboard-nav {
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    body.page-admin .nav-right,
    body.page-coach-dashboard .nav-right,
    body.page-player-dashboard .nav-right {
        gap: 8px;
        min-width: max-content;
    }

    body.page-admin #welcomeName,
    body.page-coach-dashboard #welcomeName,
    body.page-player-dashboard #welcomeName {
        max-width: none !important;
        font-size: 0.88rem;
        letter-spacing: -0.2px;
    }

    body.page-admin .admin-pill {
        font-size: 0.78rem;
        padding: 2px 7px;
    }
}

/* ==================== admin：球員管理表格修正 ==================== */
body.page-admin #view-players table th:nth-child(2),
body.page-admin #view-players table td:nth-child(2) {
    white-space: nowrap;
    word-break: keep-all;
    min-width: 92px;
}

body.page-admin #view-players table th:nth-child(3),
body.page-admin #view-players table td:nth-child(3) {
    white-space: nowrap;
    font-size: 0.86rem;
}

body.page-admin #view-players table th:nth-child(8),
body.page-admin #view-players table td:nth-child(8) {
    text-align: center;
}

body.page-admin #view-players table td:nth-child(8) .action-row {
    justify-content: center;
}
/* ==================== 首頁大按鈕樣式 ==================== */
.hero-actions {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

.btn-hero {
    font-family: 'Barlow Condensed', 'Noto Sans TC', sans-serif;
    padding: 16px 45px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero.primary {
    background-color: #C8A84B;
    color: #0A192F;
    box-shadow: 0 6px 20px rgba(200, 168, 75, 0.4);
}

.btn-hero.primary:hover {
    background-color: #f4c20d;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(244, 194, 13, 0.5);
}

.btn-hero.secondary {
    background-color: rgba(10, 25, 47, 0.5);
    color: #C8A84B;
    border: 2px solid #C8A84B;
    backdrop-filter: blur(5px);
}

.btn-hero.secondary:hover {
    background-color: rgba(200, 168, 75, 0.15);
    transform: translateY(-4px);
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .btn-hero {
        width: 100%;
        box-sizing: border-box;
    }
}
