/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    --bg-darkest: #09090b;
    --bg-darker: #111115;
    --bg-card: rgba(20, 20, 26, 0.7);
    --bg-card-hover: rgba(30, 30, 40, 0.85);
    --bg-panel: rgba(15, 15, 20, 0.8);
    
    /* Led Zeppelin Gold/Copper Accents */
    --gold-accent: #cfa838;
    --gold-accent-rgb: 207, 168, 56;
    --gold-gradient: linear-gradient(135deg, #f3d078 0%, #cfa838 50%, #997415 100%);
    --gold-glow: rgba(207, 168, 56, 0.25);
    --gold-glow-active: rgba(207, 168, 56, 0.5);
    
    --copper-accent: #a36f23;
    --danger-accent: #cf4b4b;
    --success-accent: #4bcf77;
    
    /* Typography & Borders */
    --text-light: #f3f3f7;
    --text-muted: #8a8a93;
    --text-gold: #f0cb62;
    --border-card: rgba(207, 168, 56, 0.12);
    --border-card-hover: rgba(207, 168, 56, 0.4);
    
    /* Fonts */
    --font-title: 'Montserrat', sans-serif;
    --font-vintage: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Sizes */
    --header-height: 70px;
    --sidebar-width: 420px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: rgba(207, 168, 56, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-accent);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Utility Classes & Components
   ========================================================================== */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    gap: 8px;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #111;
    box-shadow: 0 0 10px rgba(207, 168, 56, 0.2);
}
.btn-gold:hover {
    box-shadow: 0 0 20px var(--gold-glow-active);
    transform: translateY(-1px);
}
.btn-gold:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-accent);
    color: var(--text-gold);
}
.btn-outline:hover {
    background: rgba(207, 168, 56, 0.1);
    box-shadow: 0 0 10px var(--gold-glow);
}

.btn-danger {
    background: rgba(207, 75, 75, 0.2);
    border: 1px solid var(--danger-accent);
    color: var(--text-light);
}
.btn-danger:hover {
    background: var(--danger-accent);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 10px;
}

.btn-icon {
    padding: 6px 10px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--text-light);
}
.btn-icon:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* ==========================================================================
   Login Screen Layout
   ========================================================================== */
.screen {
    display: none;
    height: 100vh;
    width: 100vw;
}

.screen.active {
    display: flex;
}

#login-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1b1b24 0%, var(--bg-darkest) 100%);
    position: relative;
}

.login-container {
    width: 440px;
    padding: 40px;
    text-align: center;
    border-color: rgba(207, 168, 56, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(207, 168, 56, 0.05);
}

.login-container h1 {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-top: 15px;
}

.login-container h2 {
    font-family: var(--font-vintage);
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    color: var(--text-gold);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.zep-symbols-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.zep-symbol {
    height: 48px;
    width: 48px;
    color: var(--text-muted);
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.login-container:hover .zep-symbol {
    color: var(--gold-accent);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.symbol-zoso {
    width: 75px; /* Zoso is wider */
}

/* Forms */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    background-color: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-card);
    color: var(--text-light);
    padding: 12px 16px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(207, 168, 56, 0.15);
}

.error-message {
    color: var(--danger-accent);
    font-size: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* ==========================================================================
   Dashboard Header Layout
   ========================================================================== */
#dashboard-screen {
    flex-direction: column;
}

.app-header {
    height: var(--header-height);
    background-color: var(--bg-darker);
    border-bottom: 1px solid rgba(207, 168, 56, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.header-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    line-height: 1;
}

.logo-subtext {
    font-family: var(--font-vintage);
    font-style: italic;
    color: var(--text-gold);
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 2px;
}

.header-center-symbols {
    display: flex;
    gap: 15px;
}

.mini-sym {
    font-size: 24px;
    color: rgba(207, 168, 56, 0.4);
    user-select: none;
}

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

.user-badge {
    background: rgba(207, 168, 56, 0.1);
    border: 1px solid var(--border-card);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-gold);
}

/* ==========================================================================
   Dashboard Layout Structure
   ========================================================================== */
.dashboard-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   Sidebar: Live Matchup Station & Details
   ========================================================================== */
.matchup-panel {
    width: var(--sidebar-width);
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
    gap: 20px;
    z-index: 5;
    flex-shrink: 0;
    background-color: var(--bg-darker);
    border-right: 1px solid rgba(207, 168, 56, 0.15);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.panel-header h3 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gold);
}

.mobile-only-btn {
    display: none;
}

.match-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-selector-wrapper label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.select-nav-row {
    display: flex;
    gap: 6px;
}

#match-select {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-card);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#match-select:focus {
    border-color: var(--gold-accent);
}

.active-match-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.round-indicator {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-accent);
    background: rgba(207, 168, 56, 0.05);
    border: 1px solid rgba(207, 168, 56, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    align-self: center;
}

.match-vs-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.vs-divider {
    align-self: center;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-darkest);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-card);
    z-index: 2;
    margin: -6px 0;
}

.competitor-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.competitor-card:hover {
    border-color: var(--border-card-hover);
    background: rgba(207, 168, 56, 0.03);
}

.competitor-card.voted-for {
    border-color: var(--gold-accent);
    background: rgba(207, 168, 56, 0.06);
    box-shadow: 0 0 15px rgba(207, 168, 56, 0.1);
}

.comp-seed {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
}

.comp-name {
    font-family: var(--font-vintage);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 46px;
    color: var(--text-light);
}
.competitor-card.voted-for .comp-name {
    color: var(--text-gold);
}

.search-links-row {
    display: flex;
    gap: 15px;
    margin-bottom: 4px;
}

.search-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.search-yt::before {
    content: "▶";
    font-size: 8px;
    color: #ff0000;
}

.search-spot::before {
    content: "♫";
    font-size: 11px;
    color: #1ed760;
}

.search-link:hover {
    color: var(--text-gold);
}

.btn-vote {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
}
.btn-vote:hover {
    border-color: var(--gold-accent);
    color: var(--text-gold);
    background: rgba(207, 168, 56, 0.05);
}
.voted-for .btn-vote {
    background: var(--gold-gradient);
    color: #111;
    border-color: transparent;
}

/* Voting Results Badge list */
.voting-results {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
}

.voting-results h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.voters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voter-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.voter-name {
    font-weight: 500;
    color: var(--text-light);
}

.voter-choice {
    font-weight: 600;
    font-family: var(--font-vintage);
    color: var(--text-muted);
}
.voter-choice.voted {
    color: var(--text-gold);
}

.match-status {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.match-status.decided {
    color: var(--success-accent);
}
.match-status.undecided {
    color: var(--text-muted);
}

/* Discussion Board */
.discussion-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discussion-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.comments-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 10px;
}

.no-notes {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 15px 0;
}

.comment-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.comment-user {
    font-weight: 700;
    color: var(--text-gold);
}

.comment-time {
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-card);
    color: var(--text-light);
    border-radius: 6px;
    padding: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    resize: none;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: var(--gold-accent);
}

/* ==========================================================================
   Main Panel: Graphical Bracket Viewer Tab Navigation
   ========================================================================== */
.bracket-viewer-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-darkest);
}

.bracket-navigation {
    padding: 16px 24px;
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(257, 168, 56, 0.1);
    display: flex;
    overflow-x: auto;
}

.bracket-tabs {
    display: flex;
    gap: 8px;
    min-width: max-content;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-light);
    border-color: rgba(207, 168, 56, 0.3);
    background: rgba(207, 168, 56, 0.03);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #111;
    border-color: transparent;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   Interactive Bracket Canvas & Viewport
   ========================================================================== */
.bracket-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.bracket-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}
.bracket-viewport:active {
    cursor: grabbing;
}

.bracket-canvas {
    position: absolute;
    transform-origin: 0 0;
    display: flex;
    padding: 60px;
}

/* Tab specific canvas dimensions to ensure proper spacing */
.bracket-canvas.tab-top-left,
.bracket-canvas.tab-top-right,
.bracket-canvas.tab-bottom-left,
.bracket-canvas.tab-bottom-right {
    width: 1600px;
    height: 1600px;
}

.bracket-canvas.tab-center {
    width: 1100px;
    height: 680px;
}

.bracket-canvas.tab-full {
    width: 2800px;
    height: 6200px;
}

.bracket-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Canvas Floating Controls */
.canvas-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.btn-ctrl {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid var(--border-card);
    color: var(--text-gold);
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    user-select: none;
}

.btn-ctrl:hover {
    border-color: var(--gold-accent);
    transform: scale(1.05);
    color: var(--text-light);
    box-shadow: 0 0 12px var(--gold-glow);
}

.btn-ctrl:active {
    transform: scale(0.95);
}

/* ==========================================================================
   CSS Tournament Tree Layout
   ========================================================================== */
.round-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 260px; /* Width of match nodes column */
    margin: 0 35px; /* Horizontal space between rounds (plus SVG drawing space) */
    height: 100%;
    position: relative;
    z-index: 2;
}

.round-header {
    position: absolute;
    top: 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
    width: 80%;
    text-align: center;
}

/* Match Node Card */
.match-node {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.match-node:hover {
    border-color: var(--border-card-hover);
    box-shadow: 0 6px 20px rgba(207, 168, 56, 0.12);
    transform: translateY(-2px);
}

.match-node.is-active-match {
    border-color: var(--gold-accent);
    box-shadow: 0 0 15px var(--gold-glow);
    z-index: 3;
}

.match-node-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 10px;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.match-node.is-active-match .match-node-header {
    background: rgba(207, 168, 56, 0.05);
    color: var(--text-gold);
}

.match-node-slots {
    display: flex;
    flex-direction: column;
}

.match-slot {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 11.5px;
    font-family: var(--font-vintage);
    font-weight: 600;
    min-height: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    transition: all 0.2s;
}

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

.match-slot.is-winner {
    color: var(--text-gold);
    font-weight: 700;
}

.match-slot.is-loser {
    color: var(--text-muted);
    opacity: 0.5;
}

.slot-seed {
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.is-winner .slot-seed {
    background: rgba(207, 168, 56, 0.15);
    color: var(--text-gold);
}

.slot-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.slot-votes {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-gold);
    margin-left: 6px;
    background: rgba(207, 168, 56, 0.1);
    padding: 1px 5px;
    border-radius: 10px;
}

/* Champion Node Styles */
.champion-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.champion-crown {
    font-size: 28px;
    color: var(--gold-accent);
    filter: drop-shadow(0 0 10px var(--gold-glow-active));
    animation: bounce 2s infinite ease-in-out;
}

.match-node.champion-winner {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(20, 20, 26, 0.9) 0%, rgba(207, 168, 56, 0.08) 100%);
    box-shadow: 0 0 25px var(--gold-glow-active);
    transform: scale(1.05);
}

.match-node.champion-winner:hover {
    transform: scale(1.07) translateY(-2px);
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Responsive & Adaptive Layout
   ========================================================================== */
.mobile-view-tabs {
    display: none;
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(207, 168, 56, 0.15);
    width: 100%;
}

.mobile-view-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    padding: 14px 0;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-view-tab.active {
    color: var(--text-gold);
    border-bottom-color: var(--gold-accent);
    background: rgba(207, 168, 56, 0.03);
}

@media (max-width: 1024px) {
    .mobile-view-tabs {
        display: flex;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    /* Toggle panel views based on parent active-view state on mobile */
    .dashboard-layout.view-matchup .matchup-panel {
        display: flex;
        width: 100%;
        height: 100%;
    }
    .dashboard-layout.view-matchup .bracket-viewer-panel {
        display: none;
    }
    
    .dashboard-layout.view-bracket .matchup-panel {
        display: none;
    }
    .dashboard-layout.view-bracket .bracket-viewer-panel {
        display: flex;
        height: 100%;
    }
    
    .matchup-panel {
        border-right: none;
        border-bottom: none;
        position: static;
        transform: none;
        box-shadow: none;
        max-height: none;
    }

    #btn-toggle-matchup {
        display: none; /* Hide header toggle button as we now use tab buttons */
    }
}

@media (min-width: 1025px) {
    #btn-toggle-matchup {
        display: none;
    }
}
