/* ==========================================================================
   Event Manager - Modern Minimalist Stylesheet
   Designed for Mobile, Desktop, and Big Screen Store Displays
   ========================================================================== */

:root {
    --bg-main: #09090b;
    --bg-surface: #121215;
    --bg-surface-elevated: #1c1c21;
    --border-color: #27272a;
    --border-subtle: #1f1f23;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

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

html, body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
}

svg.icon, .icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    max-width: 100%;
    max-height: 100%;
}

/* Explicit size enforcement for SVG icons to prevent large or stretched icons */
svg.icon.w-3, .icon.w-3 { width: 0.75rem !important; height: 0.75rem !important; min-width: 0.75rem; min-height: 0.75rem; }
svg.icon.w-3\.5, .icon.w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; min-width: 0.875rem; min-height: 0.875rem; }
svg.icon.w-4, .icon.w-4 { width: 1rem !important; height: 1rem !important; min-width: 1rem; min-height: 1rem; }
svg.icon.w-5, .icon.w-5 { width: 1.25rem !important; height: 1.25rem !important; min-width: 1.25rem; min-height: 1.25rem; }
svg.icon.w-6, .icon.w-6 { width: 1.5rem !important; height: 1.5rem !important; min-width: 1.5rem; min-height: 1.5rem; }
svg.icon.w-7, .icon.w-7 { width: 1.75rem !important; height: 1.75rem !important; min-width: 1.75rem; min-height: 1.75rem; }
svg.icon.w-8, .icon.w-8 { width: 2rem !important; height: 2rem !important; min-width: 2rem; min-height: 2rem; }
svg.icon.w-9, .icon.w-9 { width: 2.25rem !important; height: 2.25rem !important; min-width: 2.25rem; min-height: 2.25rem; }
svg.icon.w-10, .icon.w-10 { width: 2.5rem !important; height: 2.5rem !important; min-width: 2.5rem; min-height: 2.5rem; }
svg.icon.w-12, .icon.w-12 { width: 3rem !important; height: 3rem !important; min-width: 3rem; min-height: 3rem; }
svg.icon.w-14, .icon.w-14 { width: 3.5rem !important; height: 3.5rem !important; min-width: 3.5rem; min-height: 3.5rem; }
svg.icon.w-16, .icon.w-16 { width: 4rem !important; height: 4rem !important; min-width: 4rem; min-height: 4rem; }

.app-modal-icon-wrap svg {
    width: 2rem !important;
    height: 2rem !important;
    max-width: 2rem !important;
    max-height: 2rem !important;
}

/* Sizing Utilities for Icons & Elements */
.w-3 { width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }
.w-7 { width: 1.75rem !important; }
.h-7 { height: 1.75rem !important; }
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-9 { width: 2.25rem !important; }
.h-9 { height: 2.25rem !important; }
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }

/* Typography & Layout Utilities */
.max-w-7xl { max-width: 80rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }

.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem; }
.space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.375rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* Text Utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-white { color: #ffffff !important; }
.text-neutral-200 { color: #e4e4e7 !important; }
.text-neutral-300 { color: #d4d4d8 !important; }
.text-neutral-400 { color: #a1a1aa !important; }
.text-neutral-500 { color: #71717a !important; }
.text-neutral-600 { color: #52525b !important; }
.text-indigo-400 { color: #818cf8 !important; }
.text-indigo-300 { color: #a5b4fc !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-amber-400 { color: #fbbf24 !important; }
.text-amber-300 { color: #fcd34d !important; }
.text-rose-400 { color: #f87171 !important; }
.text-rose-200 { color: #fecdd3 !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Borders & Backgrounds */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-neutral-700 { border-color: #3f3f46 !important; }
.border-neutral-800 { border-color: #27272a !important; }
.border-neutral-900 { border-color: #18181b !important; }
.border-indigo-500 { border-color: #6366f1 !important; }
.border-emerald-800 { border-color: #065f46 !important; }
.border-amber-800 { border-color: #92400e !important; }
.border-rose-800 { border-color: #991b1b !important; }

.bg-neutral-950 { background-color: #09090b !important; }
.bg-neutral-900 { background-color: #121215 !important; }
.bg-neutral-800 { background-color: #1f1f23 !important; }
.bg-emerald-950\/60 { background-color: rgba(6, 78, 59, 0.6) !important; }
.bg-rose-950\/60 { background-color: rgba(136, 19, 55, 0.6) !important; }
.bg-amber-950\/60 { background-color: rgba(120, 53, 15, 0.6) !important; }

/* Modern Cards & Containers */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.card-elevated {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-indigo { background-color: var(--primary-light); color: var(--primary); border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-emerald { background-color: var(--success-light); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber { background-color: var(--warning-light); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-rose { background-color: var(--danger-light); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-neutral { background-color: #27272a; color: #a1a1aa; border: 1px solid #3f3f46; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.25;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background-color: #27272a;
    color: #f4f4f5;
    border-color: #3f3f46;
}
.btn-secondary:hover {
    background-color: #3f3f46;
    color: #ffffff;
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-md);
    background-color: #18181b;
    border: 1px solid var(--border-color);
    color: #f4f4f5;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

select.form-control {
    cursor: pointer;
}

/* Modern Minimalist Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

table.data-table th {
    background-color: #18181b;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

table.data-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
}

table.data-table tr:last-child td {
    border-bottom: none;
}

table.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Match Pairing Row */
.table-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background-color: #27272a;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f4f4f5;
    flex-shrink: 0;
}

/* Store Display High-Visibility Styles */
.display-screen-body {
    background-color: #050507;
    color: #ffffff;
    min-height: 100vh;
    padding: 1.5rem;
    overflow-x: hidden;
}

.display-timer {
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.display-timer.time-warning {
    color: #fbbf24 !important;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.display-timer.time-danger {
    color: #ef4444 !important;
    text-shadow: 0 0 35px rgba(239, 68, 68, 0.6);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.75; }
    to { opacity: 1; }
}

/* Mobile Player Card */
.player-mobile-card {
    background: linear-gradient(145deg, #18181b, #121215);
    border: 1px solid #2e2e36;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

.table-giant-badge {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #818cf8;
}

/* QR Code Container */
.qr-container {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    min-width: 100px;
    min-height: 100px;
}

.qr-container canvas, .qr-container img, .qr-container svg {
    display: block !important;
    max-width: 100%;
    height: auto;
}

/* Tabs */
.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Custom Themed Confirm & Alert Modals */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.app-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.app-modal-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 28rem;
    padding: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 102, 241, 0.1);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.app-modal-overlay.active .app-modal-box {
    transform: scale(1);
}

.app-modal-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.app-modal-message {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.app-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.app-modal-actions .btn {
    flex: 1;
    padding: 0.75rem;
}


/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 24rem;
    width: calc(100% - 2.5rem);
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    background-color: #121215;
    border: 1px solid #27272a;
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-item.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-item.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.825rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 0.15rem;
}

.toast-message {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    opacity: 0.6;
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Color Variants */
.toast-success {
    border-color: rgba(16, 185, 129, 0.4);
}
.toast-success .toast-icon {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.toast-success .toast-progress {
    color: #10b981;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}
.toast-error .toast-icon {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.toast-error .toast-progress {
    color: #ef4444;
}

.toast-warning {
    border-color: rgba(245, 158, 11, 0.4);
}
.toast-warning .toast-icon {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.toast-warning .toast-progress {
    color: #f59e0b;
}

.toast-info {
    border-color: rgba(99, 102, 241, 0.4);
}
.toast-info .toast-icon {
    background-color: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.toast-info .toast-progress {
    color: #6366f1;
}

/* Specific Round Button Color Overrides */
.btn-round-green, .btn-start-round {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
.btn-round-green:hover, .btn-start-round:hover {
    background-color: #059669 !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

.btn-round-blue, .btn-pairings-blue {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
.btn-round-blue:hover, .btn-pairings-blue:hover {
    background-color: #1d4ed8 !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5) !important;
}

.btn-round-red, .btn-finish-event {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}
.btn-round-red:hover, .btn-finish-event:hover {
    background-color: #b91c1c !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
}

/* Game Selection Cards & Gallery */
.game-select-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.game-select-card:hover {
    transform: translateY(-2px);
}
.game-select-card.active-card {
    transform: translateY(-2px);
    border-color: #6366f1 !important;
    background: linear-gradient(180deg, rgba(49, 46, 129, 0.4) 0%, rgba(18, 18, 21, 0.9) 100%) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5), 0 8px 20px -4px rgba(99, 102, 241, 0.3) !important;
}

.gallery-item-card {
    transition: all 0.2s ease;
}
.gallery-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


/* Positioning and Layout Utilities */
.fixed { position: fixed !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }

.top-0 { top: 0 !important; }
.top-1 { top: 0.25rem !important; }
.top-2 { top: 0.5rem !important; }
.top-2\.5 { top: 0.625rem !important; }
.top-3 { top: 0.75rem !important; }
.left-0 { left: 0 !important; }
.left-1 { left: 0.25rem !important; }
.left-2\.5 { left: 0.625rem !important; }
.right-0 { right: 0 !important; }
.right-2 { right: 0.5rem !important; }
.right-2\.5 { right: 0.625rem !important; }
.right-3 { right: 0.75rem !important; }
.bottom-0 { bottom: 0 !important; }
.bottom-2\.5 { bottom: 0.625rem !important; }
.-top-1 { top: -0.25rem !important; }
.-right-1 { right: -0.25rem !important; }

.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.cursor-pointer { cursor: pointer !important; }
.select-none { user-select: none !important; -webkit-user-select: none !important; }
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

.backdrop-blur { backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; }
.backdrop-blur-sm { backdrop-filter: blur(4px) !important; -webkit-backdrop-filter: blur(4px) !important; }
.backdrop-blur-md { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }

.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7) !important; }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8) !important; }
.bg-neutral-900\/60 { background-color: rgba(18, 18, 21, 0.6) !important; }
.bg-neutral-900\/70 { background-color: rgba(18, 18, 21, 0.7) !important; }
.bg-neutral-900\/80 { background-color: rgba(18, 18, 21, 0.8) !important; }
.bg-neutral-950\/60 { background-color: rgba(9, 9, 11, 0.6) !important; }
.bg-neutral-950\/90 { background-color: rgba(9, 9, 11, 0.9) !important; }
.bg-indigo-950\/20 { background-color: rgba(30, 27, 75, 0.2) !important; }
.bg-indigo-950\/40 { background-color: rgba(30, 27, 75, 0.4) !important; }
.bg-indigo-950\/90 { background-color: rgba(30, 27, 75, 0.9) !important; }
.bg-indigo-500\/10 { background-color: rgba(99, 102, 241, 0.1) !important; }
.bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2) !important; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1) !important; }

.border-indigo-500\/30 { border-color: rgba(99, 102, 241, 0.3) !important; }
.border-indigo-500\/40 { border-color: rgba(99, 102, 241, 0.4) !important; }
.border-indigo-500\/50 { border-color: rgba(99, 102, 241, 0.5) !important; }
.border-neutral-800\/60 { border-color: rgba(39, 39, 42, 0.6) !important; }
.border-neutral-800\/80 { border-color: rgba(39, 39, 42, 0.8) !important; }

.h-28 { height: 7rem !important; }
.h-36 { height: 9rem !important; }
.max-h-48 { max-height: 12rem !important; }
.max-h-60 { max-height: 15rem !important; }
.max-h-\[380px\] { max-height: 380px !important; }

.aspect-video { aspect-ratio: 16 / 9 !important; }
.aspect-\[21\/9\] { aspect-ratio: 21 / 9 !important; }
.aspect-\[3\/1\] { aspect-ratio: 3 / 1 !important; }
.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }
.border-dashed { border-style: dashed !important; }

.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.5) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important; }
.ring-2 { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid var(--border-subtle); }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Modal General Styles */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}
.modal-overlay.hidden {
    display: none !important;
}

/* Strict Constraints for Game Icons & Tournament Covers */
img {
    max-width: 100%;
    height: auto;
}

.game-icon-box, .game-select-card img, .data-table td img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.tournament-banner-img, .tournament-cover-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    overflow-y: auto !important;
}
.modal-overlay.hidden {
    display: none !important;
}

/* ==========================================================================
   Header Dropdown Menus
   ========================================================================== */
.app-dropdown-container {
    position: relative;
    display: inline-block;
}

.app-dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 0.5rem;
    background-color: rgba(18, 18, 21, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(63, 63, 70, 0.5);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-width: 16rem;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Marco Dorado Exclusivo - Torneos de Organizadores Premium
   ========================================================================== */
.tournament-card-premium {
    border: 2px solid #f59e0b !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 0 0 1px #fbbf24, 0 0 25px rgba(245, 158, 11, 0.32), 0 10px 25px -5px rgba(0, 0, 0, 0.75), inset 0 0 16px rgba(245, 158, 11, 0.08) !important;
    position: relative !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, rgba(18, 18, 21, 1) 160px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tournament-card-premium:hover {
    border-color: #fde047 !important;
    box-shadow: 0 0 0 2px #fde047, 0 0 38px rgba(251, 191, 36, 0.48), 0 15px 32px -5px rgba(0, 0, 0, 0.88), inset 0 0 20px rgba(251, 191, 36, 0.14) !important;
    transform: translateY(-3px) !important;
}

.tournament-card-premium .gold-ribbon-bar {
    background: linear-gradient(90deg, #d97706, #fbbf24, #f59e0b) !important;
    color: #09090b !important;
}
