/* Style Sheet for LIX Clásica Salesiana 2026 */

:root {
    --bg-dark: #070a13;
    --card-bg: rgba(15, 22, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-border-hover: rgba(59, 130, 246, 0.3);
    
    /* Branding Palette (Salesiana Blue & Gold) */
    --clr-blue: #2563eb;
    --clr-blue-hover: #1d4ed8;
    --clr-blue-glow: rgba(37, 99, 235, 0.25);
    
    --clr-gold: #f59e0b;
    --clr-gold-hover: #d97706;
    --clr-gold-glow: rgba(245, 158, 11, 0.25);
    
    --clr-red: #ef4444;
    --clr-green: #10b981;
    
    /* Text Colors */
    --txt-main: #f8fafc;
    --txt-muted: #94a3b8;
    --txt-dark: #0f172a;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Base resets & layouts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--txt-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background visual depth glows */
.glass-bg-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.15;
    animation: pulse 12s infinite alternate ease-in-out;
}

.sphere-blue {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-color: var(--clr-blue);
}

.sphere-gold {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background-color: var(--clr-gold);
    animation-delay: 4s;
}

@keyframes pulse {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, 40px) scale(1.15);
    }
}

.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card glassmorphism utility */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.08);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-badges {
    display: flex;
    gap: 0.75rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-salesiana {
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.badge-date {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.accent-text {
    background: linear-gradient(135deg, #60a5fa 30%, #fcd34d 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--txt-muted);
    max-width: 700px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-meta span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--txt-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta i {
    color: var(--clr-gold);
}

/* CORS Warning Box */
.alert-box {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    line-height: 1.5;
}

.warning-alert {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fde047;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-text strong {
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.blue-icon { background: rgba(37, 99, 235, 0.15); color: #3b82f6; border: 1px solid rgba(37, 99, 235, 0.2); }
.gold-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.red-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.green-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--txt-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--txt-main);
}

.stat-subtext {
    font-size: 0.75rem;
    color: var(--txt-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Tabs Container */
.tabs-container {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 0.35rem;
    gap: 0.25rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--txt-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--txt-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--txt-main);
    background: var(--clr-blue);
    box-shadow: 0 4px 15px var(--clr-blue-glow);
}

/* Controls Row (Search & Filters) */
.controls-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .controls-row {
        grid-template-columns: 350px 1fr;
    }
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.search-icon {
    color: var(--txt-muted);
    font-size: 1.1rem;
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--txt-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
}

.search-wrapper input::placeholder {
    color: #64748b;
}

.category-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--txt-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--txt-main);
    background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    color: var(--bg-dark);
    background: #fcd34d;
    border-color: #fbbf24;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

/* Results Table */
.results-table-section {
    padding: 0 !important;
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

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

.results-table th {
    background: rgba(15, 23, 42, 0.8);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--txt-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.results-table tbody tr {
    transition: var(--transition);
}

.results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Table styles */
.td-rank {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--clr-gold);
    width: 70px;
}

.td-dorsal-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--txt-main);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
}

.runner-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.runner-name-main {
    font-weight: 700;
    color: var(--txt-main);
    font-size: 0.95rem;
}

.runner-club-sub {
    font-size: 0.75rem;
    color: var(--txt-muted);
}

.badge-cat-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}

.cat-prejuvenil { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.cat-juvenil { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-elite { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-damas { background: rgba(236, 72, 153, 0.15); color: #fbcfe8; border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-dns-dnf { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }

.td-time-val {
    font-family: var(--font-heading);
    font-weight: 600;
}

.td-time-val.highlight-time {
    color: #38bdf8;
}

.row-action-btns {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--txt-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--txt-main);
    background: var(--clr-blue);
    border-color: var(--clr-blue);
    box-shadow: 0 4px 10px var(--clr-blue-glow);
}

.action-btn.btn-disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: transparent;
}

.action-btn.btn-disabled:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--txt-muted);
    box-shadow: none;
}

.row-dns-dnf-state {
    opacity: 0.6;
}

/* Loading and empty states */
.loading-state {
    padding: 4rem 2rem !important;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--clr-blue);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Footer & Pagination */
.table-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1rem;
}

#showing-results-text {
    font-size: 0.8rem;
    color: var(--txt-muted);
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 0.35rem;
}

.page-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--txt-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.page-link:hover {
    color: var(--txt-main);
    background: rgba(255, 255, 255, 0.08);
}

.page-link.active {
    background: var(--clr-blue);
    border-color: var(--clr-blue);
    color: var(--txt-main);
    box-shadow: 0 4px 10px var(--clr-blue-glow);
}

/* Footer style */
.app-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-footer p {
    font-size: 0.85rem;
    color: var(--txt-muted);
}

.app-footer .credits {
    font-size: 0.75rem;
    color: #64748b;
}

/* Premium Modal Layout */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 102;
    background: #0f162a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.runner-summary h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--txt-main);
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--txt-muted);
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--txt-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--txt-main);
    background: rgba(255, 255, 255, 0.15);
}

.modal-body-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

@media (min-width: 900px) {
    .modal-body-layout {
        grid-template-columns: 420px 1fr;
    }
}

/* Left panel: Stats */
.runner-stats-panel {
    padding: 2rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .runner-stats-panel {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
    }
}

.runner-stats-panel h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.info-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
}

.info-box.highlight-info {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.03);
}

.info-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--txt-muted);
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--txt-main);
    margin-top: 0.15rem;
}

.classification-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.classification-box h5 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.text-red { color: #f87171 !important; }
.text-gold { color: #fbbf24 !important; }

.class-standing {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--txt-muted);
}

.points-history {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--txt-muted);
    font-family: var(--font-heading);
    word-break: break-all;
}

/* Download Action in Modal */
.diploma-download-action {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.action-alert {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #a7f3d0;
}

.action-alert i {
    font-size: 1.5rem;
    color: var(--clr-green);
}

.action-alert div {
    display: flex;
    flex-direction: column;
}

.action-alert div strong {
    font-weight: 700;
}

.action-alert div span {
    font-size: 0.7rem;
    color: #6ee7b7;
}

.download-btn-primary {
    background: linear-gradient(135deg, var(--clr-blue) 0%, #1e40af 100%);
    border: none;
    color: var(--txt-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--clr-blue-glow);
    transition: var(--transition);
}

.download-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
    transform: scale(0.5);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.download-btn-primary:hover .btn-glow {
    transform: scale(1);
}

/* Right panel: Canvas */
.runner-diploma-preview {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #0b0f19;
    overflow: hidden;
}

.runner-diploma-preview h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.pdf-canvas-wrapper {
    flex: 1;
    position: relative;
    background: #1e293b;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.canvas-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.canvas-loader p {
    font-size: 0.85rem;
    color: var(--txt-muted);
}

#pdf-preview-canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    display: none;
    z-index: 2;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 150;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--clr-blue);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(150px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.toast-notification.show {
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.25rem;
    color: var(--clr-blue);
}

#toast-message {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (ADAPTIVE DESIGN)
   ========================================================================== */

/* Tablet & Mobile Table Column Hiding */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .results-table th, .results-table td {
        padding: 0.9rem 1rem;
    }
}

/* Modal Responsiveness stacking & sizing */
@media (max-width: 900px) {
    .modal-content {
        height: 95vh;
        width: 95%;
        border-radius: 16px;
    }

    .modal-body-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .runner-stats-panel {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
        overflow-y: visible;
        padding: 1.5rem;
    }

    .runner-diploma-preview {
        min-height: 460px;
        overflow: visible;
        padding: 1.5rem;
    }
    
    .pdf-canvas-wrapper {
        min-height: 380px;
    }
}

/* Small Screens layout stacking */
@media (max-width: 600px) {
    .app-container {
        padding: 1rem 0.75rem;
        gap: 1.25rem;
    }

    .hero-section {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .hero-section h1 {
        font-size: 1.85rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tabs-container {
        flex-direction: column;
        gap: 0.35rem;
        background: rgba(15, 23, 42, 0.9);
    }
    
    .tab-btn {
        width: 100%;
        padding: 0.65rem;
    }

    .controls-row {
        gap: 0.75rem;
    }

    .search-wrapper {
        padding: 0.65rem 0.85rem;
    }

    .filter-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        gap: 1rem;
    }
}
