/* ======================================================
   TG HUNTERS ESPORTS
   DASHBOARD.CSS
   Dark Gaming / Mobile Responsive
====================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070b1d;
    --card: #0d1430;
    --card2: #111a3b;
    --border: #25335f;
    --cyan: #00e5ff;
    --blue: #287cff;
    --green: #00d66b;
    --red: #ff304f;
    --yellow: #ffd43b;
    --text: #ffffff;
    --muted: #9ba5c7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        "Noto Sans Bengali",
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            #111c48 0%,
            #070b1d 45%,
            #050817 100%
        );

    color: var(--text);
    min-height: 100vh;

    padding-bottom: 90px;
}


/* ======================================================
   MAIN
====================================================== */

.dashboard-page {
    width: 100%;
    max-width: 760px;
    margin: auto;
    padding: 15px;
}


/* ======================================================
   HEADER
====================================================== */

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 5px;

    background: rgba(7, 11, 29, 0.94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #1677ff,
        #00d9ff
    );

    border-radius: 13px;

    font-size: 24px;

    box-shadow:
        0 0 20px rgba(0, 229, 255, 0.25);
}

.brand h1 {
    font-size: 18px;
    letter-spacing: 1px;
}

.brand span {
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn,
.logout-btn {
    border: none;
    cursor: pointer;
}

.icon-btn {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    background: var(--card2);
    border: 1px solid var(--border);

    color: white;
    font-size: 18px;
}

.logout-btn {
    padding: 10px 14px;

    border-radius: 10px;

    background: rgba(255, 48, 79, 0.12);
    border: 1px solid rgba(255, 48, 79, 0.35);

    color: #ff6078;
    font-weight: bold;
}


/* ======================================================
   WELCOME
====================================================== */

.welcome-card {
    margin-top: 18px;

    padding: 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(30, 76, 170, 0.45),
            rgba(10, 17, 48, 0.95)
        );

    border: 1px solid #263b72;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);
}

.small-title {
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}

.welcome-card h2 {
    margin-top: 7px;
    font-size: 23px;
}

.welcome-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    word-break: break-word;
}

.welcome-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(0, 229, 255, 0.1);

    font-size: 28px;

    border: 1px solid rgba(0, 229, 255, 0.2);
}


/* ======================================================
   STATUS
====================================================== */

.status-card {
    margin-top: 12px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.status-card > div {
    padding: 15px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 15px;
}

.status-card span {
    display: block;

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 7px;
}

.status-card strong {
    font-size: 14px;
}


/* ======================================================
   SECTION
====================================================== */

.section,
.dashboard-section {
    margin-top: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;

    color: var(--text);
}

.section-title h2 {
    font-size: 17px;
}

.section-title > span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: bold;
}


/* ======================================================
   CARDS
====================================================== */

.tournament-card,
.team-card,
.match-card,
.notice-card,
.group-teams {
    background:
        linear-gradient(
            145deg,
            rgba(17, 26, 59, 0.98),
            rgba(9, 14, 35, 0.98)
        );

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22);
}

.tournament-card,
.team-card,
.match-card,
.notice-card {
    padding: 18px;
}


/* ======================================================
   TOURNAMENT
====================================================== */

.tournament-info h3 {
    color: var(--cyan);
    font-size: 18px;
    margin-bottom: 10px;
}

.tournament-info p {
    color: var(--muted);
    font-size: 13px;
}

.tournament-info strong {
    color: var(--green);
}


/* ======================================================
   TEAM
====================================================== */

.team-main {
    display: flex;
    align-items: center;
    gap: 13px;

    padding-bottom: 15px;

    border-bottom: 1px solid var(--border);
}

.team-logo {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #1c6dff,
        #00c8ff
    );

    border-radius: 15px;

    font-size: 25px;
}

.team-main h3 {
    font-size: 18px;
}

.team-main p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.team-details {
    margin-top: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    padding: 11px 0;

    border-bottom: 1px solid rgba(37, 51, 95, 0.5);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--muted);
    font-size: 12px;
}

.detail-row strong {
    color: white;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
}


/* ======================================================
   GROUP
====================================================== */

.dashboard-section {
    padding: 0;
}

.dashboard-section .section-title {
    padding: 0 2px;
}

.dashboard-section .section-title > span {
    color: white;
    font-size: 16px;
}

.dashboard-section .section-title small {
    color: var(--cyan);
    font-size: 12px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 15px;

    background: rgba(0, 229, 255, 0.06);

    border-bottom: 1px solid var(--border);
}

.group-header strong {
    color: var(--cyan);
}

.group-header span {
    color: var(--muted);
    font-size: 12px;
}

.group-team {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 15px;

    border-bottom: 1px solid rgba(37, 51, 95, 0.45);
}

.group-team:last-child {
    border-bottom: none;
}

.group-team.my-team {
    background:
        linear-gradient(
            90deg,
            rgba(0, 229, 255, 0.12),
            transparent
        );

    border-left: 3px solid var(--cyan);
}

.group-rank {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #172144;

    color: var(--cyan);

    font-size: 12px;
    font-weight: bold;
}

.group-team-info {
    flex: 1;
}

.group-team-info strong {
    display: block;
    font-size: 13px;
}

.group-team-info small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}


/* ======================================================
   MATCH
====================================================== */

.match-info h3 {
    color: var(--cyan);
    margin-bottom: 12px;
}

.match-row {
    display: flex;
    justify-content: space-between;

    padding: 11px 0;

    border-bottom: 1px solid rgba(37, 51, 95, 0.5);
}

.match-row:last-child {
    border-bottom: none;
}

.match-row span {
    color: var(--muted);
    font-size: 13px;
}

.match-row strong {
    color: white;
    font-size: 13px;
    text-align: right;
}


/* ======================================================
   ROOM
   Add this HTML section if room is shown:
   
   <section class="section room-section">
      ...
   </section>
====================================================== */

.room-card {
    padding: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(0, 50, 85, 0.9),
            rgba(7, 16, 38, 0.98)
        );

    border: 1px solid rgba(0, 229, 255, 0.35);

    border-radius: 20px;

    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.08);
}

.room-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.room-title h3 {
    color: var(--cyan);
    font-size: 18px;
}

.room-status {
    padding: 6px 10px;

    border-radius: 20px;

    background: rgba(0, 214, 107, 0.12);

    color: var(--green);

    border: 1px solid rgba(0, 214, 107, 0.3);

    font-size: 11px;
    font-weight: bold;
}

.room-item {
    margin-top: 10px;

    padding: 14px;

    border-radius: 13px;

    background: rgba(0, 0, 0, 0.25);

    border: 1px solid rgba(255, 255, 255, 0.06);
}

.room-item span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 6px;
}

.room-item strong {
    display: block;

    color: white;

    font-size: 18px;

    letter-spacing: 1px;

    word-break: break-all;
}


/* ======================================================
   POINTS
====================================================== */

.points-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.point-box {
    padding: 18px 10px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;
}

.point-box span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 8px;
}

.point-box strong {
    color: var(--cyan);

    font-size: 25px;
}

.point-box.total {
    border-color: rgba(0, 229, 255, 0.4);

    background:
        linear-gradient(
            145deg,
            rgba(0, 229, 255, 0.1),
            rgba(10, 20, 50, 0.9)
        );
}


/* ======================================================
   NOTICE
====================================================== */

.notice-content h3 {
    color: var(--yellow);

    font-size: 17px;

    margin-bottom: 10px;
}

.notice-content p {
    color: #d9def3;

    font-size: 13px;

    line-height: 1.7;

    white-space: pre-wrap;
}


/* ======================================================
   QUICK ACCESS
====================================================== */

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}

.quick-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 12px;

    text-decoration: none;

    border-radius: 13px;

    background: var(--card2);

    border: 1px solid var(--border);

    color: white;

    font-size: 13px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.quick-btn:hover {
    transform: translateY(-2px);

    border-color: var(--cyan);

    color: var(--cyan);
}


/* ======================================================
   LOADING
====================================================== */

.loading,
.loading-card {
    text-align: center;

    color: var(--muted);

    padding: 25px 10px;

    font-size: 13px;
}

.loading::after {
    content: "";

    display: block;

    width: 25px;
    height: 25px;

    margin: 12px auto 0;

    border: 3px solid rgba(255,255,255,0.15);

    border-top-color: var(--cyan);

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ======================================================
   EMPTY STATE
====================================================== */

.empty-state {
    padding: 25px 10px;

    text-align: center;

    color: var(--muted);

    line-height: 1.7;
}

.empty-state h3 {
    color: var(--cyan);

    margin-bottom: 8px;
}

.empty-state a {
    display: inline-block;

    margin-top: 12px;

    padding: 10px 15px;

    border-radius: 10px;

    background: var(--blue);

    color: white;

    text-decoration: none;

    font-weight: bold;
}


/* ======================================================
   SECURITY
====================================================== */

.secure-text {
    margin: 25px 5px;

    padding: 15px;

    text-align: center;

    color: #7580a4;

    font-size: 11px;

    line-height: 1.6;

    border-top: 1px solid rgba(255,255,255,0.05);
}


/* ======================================================
   BOTTOM NAV
====================================================== */

.bottom-nav {
    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    z-index: 999;

    width: 100%;
    max-width: 760px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    padding: 8px 8px 10px;

    background:
        rgba(6, 10, 27, 0.97);

    backdrop-filter: blur(15px);

    border-top:
        1px solid rgba(0, 229, 255, 0.15);
}

.bottom-nav a {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    min-height: 55px;

    text-decoration: none;

    color: #747e9e;

    border-radius: 12px;

    transition: 0.2s;
}

.bottom-nav a span {
    font-size: 19px;
}

.bottom-nav a small {
    font-size: 9px;
}

.bottom-nav a.active {
    color: var(--cyan);

    background:
        rgba(0, 229, 255, 0.08);
}


/* ======================================================
   SCROLLBAR
====================================================== */

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

::-webkit-scrollbar-track {
    background: #070b1d;
}

::-webkit-scrollbar-thumb {
    background: #263b72;
    border-radius: 10px;
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 480px) {

    .dashboard-page {
        padding: 10px;
    }

    .dashboard-header {
        padding-left: 2px;
        padding-right: 2px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .brand h1 {
        font-size: 15px;
    }

    .brand span {
        font-size: 9px;
    }

    .logout-btn {
        padding: 9px 11px;
        font-size: 11px;
    }

    .welcome-card {
        padding: 18px;
    }

    .welcome-card h2 {
        font-size: 20px;
    }

    .welcome-icon {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .status-card {
        grid-template-columns: 1fr 1fr;
    }

    .status-card > div {
        padding: 12px;
    }

    .section-title h2 {
        font-size: 15px;
    }

    .points-grid {
        gap: 7px;
    }

    .point-box {
        padding: 15px 5px;
    }

    .point-box strong {
        font-size: 22px;
    }

    .quick-grid {
        gap: 7px;
    }

}


/* ======================================================
   VERY SMALL SCREEN
====================================================== */

@media (max-width: 350px) {

    .welcome-icon {
        display: none;
    }

    .status-card {
        grid-template-columns: 1fr;
    }

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

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

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-row strong {
        text-align: left;
    }

}