﻿/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}
html, body {
    height: auto !important;
    overflow-y: auto !important;
}

body {
    margin: 0;
    padding: 0;
    background: #0b0b0b;
    color: #e6e6e6;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: #4dabf7;
    text-decoration: none;
}

a:hover {
    color: #74c0fc;
}
/* TOGGLE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00c853;
}

input:checked + .slider:before {
  transform: translateX(26px);
}


/* =========================
   HEADER
========================= */

.site-header {
    background: #111;
    border-bottom: 1px solid #2a2a2a;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   DESKTOP NAV
========================= */

.header-nav {
    display: block;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
}

.main-nav a {
    padding: 10px 16px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    transition: 0.2s;
}

.main-nav a:hover {
    background: #333;
}

.main-nav a.active {
    background: #4dabf7;
    color: #000;
    border-color: #4dabf7;
}

/* =========================
   MOBILE NAV DEFAULT
========================= */

.mobile-header {
    display: none;
}

.mobile-dropdown {
    display: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    body.menu-open {
        overflow: hidden;
    }

    .header-nav {
        display: none !important;
    }

    /* HEADER */
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: #000;
        color: #fff;
        position: relative;
        width: 100%;
        z-index: 2000;
    }

    .mobile-menu-toggle {
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        padding: 6px;
    }

    /* DROPDOWN (OVERLAY — NOT PUSHING PAGE) */
    .mobile-dropdown {
        position: absolute;
        top: 60px;
        left: 10px;

        background: #0f2a3d;
        border-radius: 12px;

        padding: 10px;
        width: auto;

        display: none;
        z-index: 1999;

        box-shadow: 0 10px 25px rgba(0,0,0,0.6);

        max-height: 75vh;
        overflow-y: auto;
    }

    .mobile-dropdown.menu-open {
        display: block;
    }

    /* MENU BUTTONS */
    .mobile-dropdown a {
        display: block;
        width: 100%;

        padding: 10px 14px;
        margin-bottom: 8px;

        background: #1c1c1c;
        border: 1px solid rgba(77,171,247,0.25);

        border-radius: 10px;
        color: #fff;

        transition: 0.15s;
    }

    .mobile-dropdown a:last-child {
        margin-bottom: 0;
    }

    /* TAP FEEDBACK */
    .mobile-dropdown a:active {
        transform: scale(0.97);
        background: #2a2a2a;
    }

    /* ACTIVE LINK */
    .mobile-dropdown a.active {
        background: #4dabf7;
        color: #000;
        border-color: #4dabf7;
    }

    /* CONTENT */
    .page-container,
    .players-container {
        margin-top: 10px;
        padding: 15px;
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    input, select, button {
        width: 100%;
        margin-bottom: 12px;
        padding: 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* =========================
   STANDINGS
========================= */

.standings-container {
    max-width: 700px;
    margin: 0 auto;
}

.standing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.standing-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.standing-rank {
    width: 35px;
    font-weight: bold;
}

.standing-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.standing-name {
    font-size: 14px;
}

.standing-points {
    font-size: 12px;
    color: #aaa;
    margin-left: 10px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    padding: 6px 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 6px;
}

/* =========================
   LINEUP PAGE
========================= */

.lineup-container {
    display: flex;
    gap: 15px;
}

.lineup-left {
    width: 45%;
    position: sticky;
    top: 80px;
}

.roster-right {
    width: 55%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.lineup-slot {
    border: 2px dashed #555;
    padding: 18px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 8px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px;
    margin-bottom: 8px;

    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
}

.player-card.selected {
    border: 2px solid #4dabf7;
}

.player-headshot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
/* =========================
   PROFILE PAGE
========================= */

.profile-container {
    max-width: 500px;
    margin: 40px auto;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
}

/* Inputs */
.profile-container input[type=text] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

/* Buttons */
.profile-container button {
    padding: 10px 15px;
}

/* =========================
   TOGGLE SWITCH
========================= */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #444;
    border-radius: 24px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: #00c853;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* =========================
   SETTINGS ROW
========================= */

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* PROFILE SAVE BUTTON */
.profile-container button {
    width: 100%;
    background: linear-gradient(135deg, #0073e6, #00c853);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.profile-container button:active {
    transform: scale(0.98);
}

/* READONLY / LOCKED FIELD */
.readonly-field {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    font-weight: bold;
    opacity: 0.85;
    cursor: not-allowed;
}
.request-wrapper{
    max-width:500px;
    margin:40px auto;
}
/* NAME CHANGE REQUEST FORM */
.request-box{
    background:#111;
    padding:25px;
    border-radius:10px;
}

.request-box input{
    width:100%;
    padding:8px;
    margin-top:5px;
}

.request-box button{
    margin-top:15px;
    padding:10px 20px;
    cursor:pointer;
    width:100%;
}
/* NAME CHANGE REASON */
.reason-box {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    resize: vertical;
    margin-bottom: 10px;
}

.success-msg{
    background:#0a2;
    padding:10px;
    text-align:center;
    border-radius:6px;
    margin-bottom:15px;
}
/* PRIMARY BUTTON (PROFILE / FORMS) */
.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER */
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
}

/* CLICK */
.primary-btn:active {
    transform: scale(0.97);
}

/* DISABLED (optional for later) */
.primary-btn:disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
}
/* ACTION BUTTON CELL */
.action-cell {
    display: flex;
    gap: 8px;
}

/* BUTTON BASE (if not already defined) */
.btn {
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
}

/* GREEN (APPROVE) */
.btn-success {
    background: #00c853;
    color: #fff;
}

.btn-success:hover {
    background: #00e676;
}

/* RED (REJECT) */
.btn-danger {
    background: #d32f2f;
    color: #fff;
}

.btn-danger:hover {
    background: #ef5350;
}
.action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
}

.btn-success {
    background: #00c853;
    color: #fff;
}

.btn-success:hover {
    background: #00e676;
}

.btn-danger {
    background: #d32f2f;
    color: #fff;
}

.btn-danger:hover {
    background: #ef5350;
}
















