/* ============================================================
   FOOTBALL LEAGUE PUBLICATION DESIGNER — Stylesheet
   Theme: Dark Navy (matching KCCUP 2026 tournament branding)
   ============================================================ */

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
    --bg-primary: #06091a;
    --bg-secondary: #0c1029;
    --bg-sidebar: #0a0f24;
    --bg-toolbar: #080c1e;
    --bg-input: #111735;
    --bg-card: #0e133088;
    --bg-hover: #161d40;
    --bg-active: #1a2355;
    --border: #1a2550;
    --border-light: #253270;
    --text-primary: #e8ecf4;
    --text-secondary: #8892b0;
    --text-muted: #5a6480;
    --accent-blue: #4a8eff;
    --accent-blue-light: #6aa3ff;
    --accent-gold: #ffb800;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --radius: 8px;
    --radius-sm: 5px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
    --sidebar-width: 320px;
    --right-sidebar-width: 260px;
    --toolbar-height: 52px;
    --statusbar-height: 28px;
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Montserrat', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ─── APP LAYOUT ────────────────────────────────────────── */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* ─── TOOLBAR ───────────────────────────────────────────── */
#toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--toolbar-height);
    background: var(--bg-toolbar);
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
    z-index: 100;
    flex-shrink: 0;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-left { min-width: 200px; }
.toolbar-right { min-width: 200px; justify-content: flex-end; }

.app-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.app-brand i {
    font-size: 18px;
    color: var(--accent-blue);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.fa-spin-slow { animation: spin-slow 8s linear infinite; }

.tool-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 3px;
}

.tool-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 4px;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.tool-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.tool-btn.active {
    background: var(--accent-blue);
    color: #fff;
}

.zoom-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 42px;
    text-align: center;
    user-select: none;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-export:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 142, 255, 0.3);
}

/* ─── MAIN CONTENT ──────────────────────────────────────── */
#main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ─── LEFT SIDEBAR ──────────────────────────────────────── */
#left-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.sidebar-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.sidebar-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: var(--bg-active);
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* ─── RIGHT SIDEBAR ─────────────────────────────────────── */
#right-sidebar {
    width: var(--right-sidebar-width);
    min-width: var(--right-sidebar-width);
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
}

#right-sidebar > .sidebar-scroll {
    padding: 0;
}

.panel-section {
    border-bottom: 1px solid var(--border);
    padding: 12px;
}

.panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-title i {
    color: var(--accent-blue);
    font-size: 12px;
}

/* ─── CANVAS AREA ───────────────────────────────────────── */
#canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #050810;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(30,50,100,0.15) 0%, transparent 70%);
}

#canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 20px;
    position: relative;
}

#canvas-wrapper {
    position: relative;
    box-shadow: 0 0 60px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.1);
    border-radius: 2px;
    line-height: 0;
}

#canvas-wrapper canvas {
    display: block;
}

#canvas-statusbar {
    height: var(--statusbar-height);
    background: var(--bg-toolbar);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 20px;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

#canvas-statusbar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

#status-sync {
    margin-left: auto;
    font-size: 10px;
    cursor: default;
    white-space: nowrap;
}

/* ─── FORM ELEMENTS ─────────────────────────────────────── */
.form-group {
    margin-bottom: 12px;
}

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

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-row label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 55px;
    flex-shrink: 0;
}

.form-input, .prop-input, select, input[type="text"], input[type="number"], input[type="date"], input[type="time"], textarea {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus, .prop-input:focus, select:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus, textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(74,142,255,0.15);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238892b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

input[type="color"].prop-color {
    width: 34px;
    height: 30px;
    padding: 2px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    border: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--accent-blue), #3b6fdb);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 11px;
}

.btn-danger {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.btn-danger:hover {
    filter: brightness(1.15);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #d4990a);
    color: #111;
}

.btn-full {
    width: 100%;
}

.btn-group-small {
    display: flex;
    gap: 2px;
}

.mini-btn {
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}

.mini-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.mini-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

.toggle-btn.on { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* ─── PUBLICATION TYPE CARDS ────────────────────────────── */
.pub-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.pub-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.pub-type-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pub-type-card.active {
    background: rgba(74, 142, 255, 0.12);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(74, 142, 255, 0.15);
}

.pub-type-card i {
    font-size: 20px;
    color: var(--accent-blue);
}

.pub-type-card.active i {
    color: var(--accent-gold);
}

.pub-type-card span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.pub-type-card.active span {
    color: var(--text-primary);
}

/* ─── DATA PANEL ────────────────────────────────────────── */
.data-section {
    margin-bottom: 16px;
}

.data-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
}

.data-section-header:hover {
    background: var(--bg-hover);
}

.data-section-header h4 {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-section-header h4 i {
    color: var(--accent-blue);
}

.data-section-header .badge {
    background: var(--accent-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.data-section-body {
    padding: 0 4px;
}

.data-section-body.collapsed {
    display: none;
}

/* Team/Match/Result list items */
.data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 12px;
    transition: var(--transition);
}

.data-item:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.data-item-name {
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.data-item-actions button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.data-item-actions button:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border);
}

.data-item-actions button.btn-remove:hover {
    color: var(--accent-red);
}

/* Dynamic form area */
.dynamic-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

.dynamic-form h5 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Player list inline */
.player-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    align-items: center;
}

.player-row input {
    flex: 1;
    padding: 5px 8px;
    font-size: 11px;
}

.player-row .player-num {
    width: 36px;
    flex-shrink: 0;
    text-align: center;
}

.player-row .player-pos {
    width: 60px;
    flex-shrink: 0;
}

.player-row button {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.player-avatar-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 56px;
}

.player-avatar-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-input);
    border: 1px solid var(--border);
}

.player-avatar-thumb[src=""],
.player-avatar-thumb:not([src]) {
    display: none;
}

.player-avatar-btn {
    padding: 2px 4px;
}

/* BG selector */
.bg-preview {
    width: 100%;
    height: 120px;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.bg-preview:hover {
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

.bg-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-preview .bg-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
}

.bg-preview .bg-placeholder i {
    font-size: 24px;
}

/* ─── PUBLICATION FORM ──────────────────────────────────── */
.pub-form-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pub-form-section h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-entry {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 8px;
}

.match-entry .match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.match-entry .match-header span {
    font-weight: 600;
    font-size: 11px;
    color: var(--accent-blue);
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-teams .vs {
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 12px;
}

.scorer-row, .card-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    align-items: center;
}

.scorer-row input, .card-row input {
    flex: 1;
    padding: 4px 8px;
    font-size: 11px;
}

/* ─── LAYERS PANEL ──────────────────────────────────────── */
.layer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.layer-item:hover {
    background: var(--bg-hover);
    border-color: var(--border);
}

.layer-item.selected {
    background: rgba(74,142,255,0.15);
    border-color: var(--accent-blue);
}

.layer-item i {
    color: var(--text-muted);
    font-size: 10px;
    width: 14px;
    text-align: center;
}

.layer-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── MODALS ────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-small {
    width: 340px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: var(--accent-blue);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-red);
}

.modal-body {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ─── TOAST NOTIFICATIONS ───────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    animation: toast-in 0.3s ease;
    min-width: 220px;
}

.toast.toast-success { border-left: 3px solid var(--accent-green); }
.toast.toast-error { border-left: 3px solid var(--accent-red); }
.toast.toast-info { border-left: 3px solid var(--accent-blue); }
.toast.toast-warning { border-left: 3px solid var(--accent-orange); }

.toast i {
    font-size: 15px;
}

.toast.toast-success i { color: var(--accent-green); }
.toast.toast-error i { color: var(--accent-red); }
.toast.toast-info i { color: var(--accent-blue); }
.toast.toast-warning i { color: var(--accent-orange); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-out {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ─── HINT TEXT ──────────────────────────────────────────── */
.hint-text {
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    padding: 16px 8px;
    line-height: 1.6;
}

/* ─── MISC UTILITIES ────────────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-sm { font-size: 11px; }
.text-xs { font-size: 10px; }
.text-gold { color: var(--accent-gold); }
.text-blue { color: var(--accent-blue); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.w-full { width: 100%; }

.separator {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* ─── PADDING CONTROLS ─────────────────────────────────── */
.padding-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.padding-row {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.padding-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.padding-cell label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.padding-top-cell, .padding-bottom-cell {
    width: 100%;
    align-items: center;
}
.pad-input {
    width: 64px !important;
    text-align: center;
    padding: 4px 4px !important;
    font-size: 12px !important;
}
.padding-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pad-box {
    width: 80px;
    height: 48px;
    border: 2px dashed var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}
.pad-box span {
    font-size: 9px;
    color: var(--text-muted);
}

/* ─── HEADER CONTROLS ──────────────────────────────────── */
.header-controls {
    margin-bottom: 6px;
}
.header-controls .form-row label {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.header-controls .form-input {
    font-size: 0.85em;
}

/* ─── LOGO CONTROLS ────────────────────────────────────── */
.logo-controls {
    margin-bottom: 6px;
}
.logo-controls .form-row label {
    font-size: 0.85em;
    color: var(--text-secondary);
}
.logo-controls input[type="checkbox"] {
    accent-color: var(--accent-blue);
    cursor: pointer;
}
.btn-small {
    padding: 6px 10px;
    font-size: 0.8em;
}

/* ─── DREAM TEAM PITCH DIAGRAM ──────────────────────────── */
.pitch-selector {
    position: relative;
    width: 100%;
    aspect-ratio: 1.2;
    background: linear-gradient(180deg, #1a6b36 0%, #1e8040 50%, #1a6b36 100%);
    border: 2px solid #2ecc71;
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.pitch-selector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.pitch-selector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1400px) {
    :root {
        --sidebar-width: 280px;
        --right-sidebar-width: 240px;
    }
}

@media (max-width: 1100px) {
    :root {
        --sidebar-width: 260px;
        --right-sidebar-width: 220px;
    }
    .pub-type-grid {
        grid-template-columns: 1fr;
    }
}
