/* 
   ARP PROGRAM - ULTIMATE RESPONSIVE RESTRUCTURE
   Zero-Override System
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Syncopate:wght@700&display=swap');

:root {
    --primary: #ff4d00;
    --primary-glow: rgba(255, 77, 0, 0.4);
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-white: #ffffff;
    --text-silver: #e0e0e0;
    --text-muted: #808080;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gradient: linear-gradient(135deg, #ff4d00 0%, #ff8c00 100%);
    --header-height: 70px;
}

/* 1. RESET CRÍTICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}

html,
body {
    width: 100vw;
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

a:visited {
    color: inherit;
}

/* 2. CONTENEDORES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.dark-section {
    background: var(--bg-dark);
}

/* 3. TIPOGRAFÍA DINÁMICA */
h1,
h2,
h3,
.logo {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h1 {
    font-size: clamp(1.8rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 25px;
}

h2 {
    font-size: clamp(1.4rem, 6vw, 3.5rem);
    margin-bottom: 15px;
}

h3 {
    font-size: 1.2rem;
}

.highlight {
    color: var(--primary);
}

/* Forcing color on links and icons */
a.highlight,
.highlight.link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

a.highlight:hover {
    text-shadow: 0 0 10px var(--primary-glow);
    filter: brightness(1.2);
}

/* White color for the DOB icon */
.dob-icon {
    color: white !important;
}

/* Browser calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* 4. BOTONES / UI */
.btn {
    font-family: 'Syncopate', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.75rem;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
}

::selection {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.full-width {
    width: 100%;
}

/* 5. NAVEGACIÓN */
.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-container .logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-logo-name {
    height: 55px;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: 0.3s ease;
    display: block;
}

.nav-logo-name:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 77, 0, 0.4));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links li a {
    font-family: 'Syncopate', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* 6. HERO */
.hero-tag {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 77, 0, 0.1);
    border-left: 3px solid var(--primary);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: #000;
    position: relative;
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?q=80&w=1920&auto=format&fit=crop') center/cover;
    z-index: 1;
    mask-image: linear-gradient(to left, #000 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-branding {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    z-index: 2;
    opacity: 0.3;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.hero-logo-large {
    width: 100%;
    filter: invert(1) brightness(1.5);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-55%) translateX(10px);
    }
}

.section-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1) invert(1);
}

.dashboard-logo-bg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    opacity: 0.15;
    pointer-events: none;
    filter: invert(1);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* 7. TARJETAS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    transition: 0.4s;
    cursor: pointer;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 9. AUTH SYSTEM */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.tactical-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 77, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 77, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-50%);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(-50%);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(-40%);
    }
}

.auth-box {
    width: 100%;
    max-width: 480px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    padding: 60px 40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 40px var(--primary-glow);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 80px rgba(255, 77, 0, 0.2);
    transform: scale(1.02);
}

.auth-logo {
    display: block;
    width: 180px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    mix-blend-mode: screen;
}

.auth-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(1) invert(1);
}

.tactical-msg {
    background: rgba(255, 77, 0, 0.1);
    border: 1px solid var(--primary);
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tactical-msg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 0, 0.2), transparent);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.auth-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    z-index: 15;
    animation: scan 4s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.admin-input {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: white;
    font-family: 'Outfit', sans-serif;
    border-radius: 4px;
    transition: 0.3s;
    appearance: none;
    cursor: pointer;
}

select.admin-input {
    background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
        linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 5px),
        calc(100% - 15px) calc(1em + 5px);
    background-size: 5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.admin-input option {
    background: #1a1a1a;
    color: white;
    padding: 15px;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 77, 0, 0.05);
    box-shadow: 0 0 15px var(--primary-glow);
}

.security-radar {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--primary);
}

.radar-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    border-radius: 50%;
    animation: ping 2s infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.glitch {
    position: relative;
    font-weight: 900;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #ffea00;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch::after {
    color: #ff4d00;
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* 10. REVEAL */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 11. ADMIN UI */
.stat-card {
    background: var(--bg-card);
    padding: 30px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    color: var(--primary);
    font-family: 'Syncopate';
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--glass-border);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
}

/* Custom Scrollbar for better UX */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge.active {
    background: #4caf50;
    color: white;
}

.badge.pending {
    background: #ffcc00;
    color: black;
}

.badge.inactive {
    background: #ff5252;
    color: white;
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
}

/* 11. ADMIN & DASHBOARD CORE */
body.dashboard-page {
    padding-top: var(--header-height);
}

.dashboard-header {
    padding: 40px 0 30px;
    margin-top: 10px;
}

/* Admin page first section offset */
body.dashboard-page>.container:first-of-type,
body.dashboard-page>div[id^="noWodAdmin"] {
    margin-top: 20px;
}

.welcome-msg {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 5px;
}

.plan-badge {
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 10px;
}

.admin-section {
    margin-top: 40px;
}

.stats-grid {
    margin-top: 80px;
}

.dashboard-tab {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-admin-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

#tab-wods .grid-admin-main {
    grid-template-columns: 2fr 1fr;
}

.grid-admin-internal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.form-row-mobile {
    display: flex;
    gap: 15px;
}

/* WOD Date Navigator */
.wod-date-navigator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 12px 16px;
    background: rgba(255, 77, 0, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.wod-date-center {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.wod-date-center h3 {
    font-size: 0.9rem;
    white-space: nowrap;
}

.wod-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-silver);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.wod-nav-btn:hover:not(:disabled) {
    background: rgba(255, 77, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 77, 0, 0.2);
}

.wod-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.wod-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.wod-today-btn {
    width: auto;
    padding: 0 14px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.25);
}

.wod-today-btn:hover:not(:disabled) {
    background: var(--accent-gradient);
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(255, 77, 0, 0.35);
    border: none;
    color: white;
}

/* 12. ERP BUILDER UI */
.wod-tabs,
.wod-editor-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.wod-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-muted);
    font-family: 'Syncopate', sans-serif;
    font-size: 0.65rem;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
    font-weight: 900;
    letter-spacing: 1px;
}

.wod-tab-btn:hover {
    color: var(--text-white);
}

.wod-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.editor-area,
.wod-content-area {
    animation: fadeIn 0.3s ease;
}

.history-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-item {
    transition: 0.3s;
    cursor: pointer;
}

.history-item:hover {
    transform: translateX(5px);
    background: rgba(255, 77, 0, 0.08) !important;
}

.ranking-list li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE SYSTEM REINFORCED */
@media (max-width: 1024px) {

    .grid-3,
    .grid-admin-main,
    .grid-admin-internal {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
        overflow-x: hidden;
    }

    .header {
        position: relative;
        height: auto;
        padding: 15px 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links li a {
        font-size: 0.65rem;
        padding: 5px;
    }

    .dashboard-header {
        margin-top: 10px;
        padding: 20px 0;
        text-align: center;
    }

    .welcome-msg {
        font-size: 1.6rem;
    }

    .card {
        padding: 20px 15px !important;
    }

    .form-row-mobile {
        flex-direction: column;
        gap: 10px;
    }

    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 10px;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        white-space: normal;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary);
        font-size: 0.7rem;
        text-transform: uppercase;
        margin-right: 15px;
        text-align: left;
    }

    .data-table select.admin-input {
        width: 60% !important;
        min-width: auto;
        padding: 8px !important;
    }

    .hero-visual {
        mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
        width: 100%;
        height: 50%;
        bottom: 0;
        top: auto;
    }

    /* Fix for WOD builder on mobile */
    .blocks-editor {
        max-height: none;
    }

    .dashboard-logo-bg {
        height: 60px !important;
        position: relative !important;
        top: 0 !important;
        margin: 0 auto 15px !important;
        display: block;
        transform: none !important;
        opacity: 0.2;
    }

    .section-watermark {
        width: 120px !important;
        bottom: 0px !important;
        right: 0px !important;
    }
}

/* CORNER ACCENTS */
.corner-accents {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    z-index: 20;
}

/* ... rest of accents ... */

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.access-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'Syncopate';
}

.access-divider::before,
.access-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.status-bars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.status-bars .bar {
    width: 20px;
    height: 3px;
    background: var(--glass-border);
}

.status-bars .bar.active {
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

.highlight-link {
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.highlight-link:hover {
    letter-spacing: 1px;
}

/* 12. ERP BUILDER UI */
/* --- FINAL ULTIMATE RESPONSIVE OVERHAUL --- */
@media (max-width: 900px) {
    :root {
        --header-height: auto;
    }

    .header {
        position: relative !important;
        padding: 10px 0 !important;
    }

    .nav-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .nav-links {
        margin-top: 15px;
        gap: 10px !important;
        justify-content: center !important;
        width: 100%;
        padding: 0;
    }

    .nav-links li a {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }

    /* Grid Admin Responsiveness */
    .grid-admin {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        display: flex !important;
        flex-direction: column;
    }

    .card {
        width: 100% !important;
        margin-bottom: 20px !important;
        padding: 20px 15px !important;
    }

    .wod-editor-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
    }

    .wod-tab-btn {
        flex: 1;
        text-align: center;
    }

    .admin-input {
        font-size: 16px !important;
        /* Prevents iPhone zoom */
    }

    .history-admin-list {
        max-height: 400px;
    }
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box !important;
}

img {
    max-width: 100%;
    height: auto;
}

.blocks-editor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blocks-editor textarea {
    resize: none;
    border-left: 2px solid var(--primary);
    width: 100%;
}

.notification-badge {
    background: #ff3b30;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}