/* ===========================================
   MyScene.css - Mid-2000s Social Network Styles
   
   A retro-styled CSS for a social network platform
   with that classic mid-2000s web aesthetic.
   
   Color Scheme:
   - Background: #000 (Black)
   - Primary Text: #FFF (White)
   - Secondary Text: #A6A6A6 (Gray)
   - Accent: #E60000 (Red)
   
   Last Updated: 2025-09-15
=========================================== */

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #000;
    color: #FFF;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Theme Variables (scoped to profile page) ===== */
/*
   The server sets CSS variables on .profile-page via ViewBag.UserCss:
   --bg-color, --text-primary, --secondary-color, --accent-color
   Below we map common elements to these variables with fallbacks to default theme values.
*/
.profile-page {
    /* Background and default text color */
    background-color: var(--bg-color, #000);
    color: var(--text-primary, #A6A6A6);
    /* Prevent horizontal overflow from inner fixed-width children */
    overflow-x: hidden;
}

/* Headings and bold elements use Secondary */
.profile-page h1,
.profile-page h2,
.profile-page h3,
.profile-page h4,
.profile-page h5,
.profile-page h6,
.profile-page .box-title,
.profile-page .text-bold {
    color: var(--secondary-color, #E60000) !important;
}

/* Paragraphs and general text use Primary */
.profile-page p,
.profile-page .form-label,
.profile-page .comment-meta,
.profile-page .desc-text,
.profile-page .profile-box,
.profile-page .form-control {
    color: var(--text-primary, #A6A6A6);
}

/* Links and hovers use Accent */
.profile-page a,
.profile-page a.link-muted {
    color: var(--accent-color, #FF3333);
}
.profile-page a:hover,
.profile-page a.link-muted:hover {
    color: var(--accent-color, #E60000);
    text-decoration: underline;
}

/* Primary buttons and emphasis use Secondary; hover uses Accent */
.profile-page .btn-primary,
.profile-page .button.primary {
    background-color: var(--secondary-color, #E60000);
    border-color: var(--secondary-color, #E60000);
    color: #FFF;
}
.profile-page .btn-primary:hover,
.profile-page .button.primary:hover {
    background-color: var(--accent-color, #FF3333);
    border-color: var(--accent-color, #FF3333);
}

/* Form focus & accents */
.profile-page .form-control:focus {
    border-color: var(--secondary-color, #E60000);
    box-shadow: 0 0 5px color-mix(in srgb, var(--secondary-color, #E60000) 50%, transparent);
}

/* Scrollbars themed per user variables */
.profile-page {
    scrollbar-color: var(--secondary-color, #E60000) #333;
}
.profile-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.profile-page ::-webkit-scrollbar-track {
    background: #333;
}
.profile-page ::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color, #E60000);
    border-radius: 8px;
    border: 2px solid #333;
}
.profile-page ::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color, #FF3333);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
    color: #FFF;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: #E60000;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #A6A6A6;
}

a {
    color: #E60000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #FF3333;
    text-decoration: underline;
}

/* Reusable helper for small text */
.text-small {
    font-size: 12px;
}

/* Text Helpers */
.text-primary {
    color: #E60000 !important;
}

.text-secondary {
    color: #A6A6A6 !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-bold {
    font-weight: 700;
}

.text-light {
    font-weight: 300;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}

a {
    color: #E60000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #FF3333;
}

/* Reusable muted link */
.link-muted {
    color: #A6A6A6;
    text-decoration: none;
    font-size: 12px;
}

.link-muted:hover {
    color: #E60000;
    text-decoration: underline;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 0px;
    background-color: #000;
    border: 1px solid #333;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

/* Social-like button */
.btn-social {
    background-color: #333;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    text-decoration: none;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 10px 12px;
}

.btn-social:hover {
    background-color: #444;
    color: #FFF;
    text-decoration: none;
}

/* ===== Header ===== */
.header {
    background: #111 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf8EPy+xAAAAAElFTkSuQmCC');
    padding: 10px 20px;
    border-bottom: 2px solid #E60000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #E60000;
    text-shadow: 1px 1px 0 #000;
    
}

/* ===== Navigation ===== */
.nav {
    background-color: #1A1A1A;
    padding: 8px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav .nav-left, .nav .nav-right { display: flex; align-items: center; gap: 16px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }

.nav li { display: inline-flex; align-items: center; }

.nav a {
    color: #A6A6A6;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 3px;
}

.nav a:hover {
    background-color: #333;
    text-decoration: none;
}
    /* Amigos dropdown */
    .nav .dropdown {
        position: relative;
    }

        .nav .dropdown .dropdown-menu {
            display: none;
            position: absolute;
            left: 0;
            top: 100%;
            background: var(--bg-color, #1A1A1A);
            border: 1px solid var(--secondary-color,#333);
            min-width: 220px;
            padding: 6px 0;
            z-index: 1001;
        }

        .nav .dropdown.open .dropdown-menu {
            display: block;
        }

        .nav .dropdown .dropdown-menu li {
            list-style: none;
        }

        .nav .dropdown .dropdown-menu a {
            display: block;
            padding: 8px 12px;
            color: var(--text-primary,#A6A6A6);
            text-decoration: none;
        }

            .nav .dropdown .dropdown-menu a:hover {
                background: rgba(255,255,255,0.05);
            }
/* Icons spacing */
.nav a .fa { margin-right: 6px; }

/* Notifications popup */
.notif-wrapper { position: relative; }
.notif-bell { position: relative; cursor: pointer; }
.notif-bell .badge { position: absolute; top: -6px; right: -6px; background:#E60000; color:#FFF; font-size:10px; border-radius:10px; padding:2px 5px; }
.notif-popup { display:none; position:absolute; right:0; top:28px; width:320px; max-height:320px; overflow-y:auto; background:#1A1A1A; border:1px solid #333; border-radius:4px; box-shadow:0 4px 10px rgba(0,0,0,.4); z-index:1001; }
.notif-popup.show { display:block; }
.notif-item { padding:10px 12px; border-bottom:1px solid #222; color:#DDD; font-size:13px; }
.notif-item:last-child { border-bottom:none; }
.notif-empty { padding:16px; color:#777; text-align:center; }

/* Logout button */
.btn-logout { background:#333; color:#FFF; border:1px solid #555; padding:6px 10px; border-radius:3px; cursor:pointer; font-weight:bold; }
.btn-logout:hover { background:#444; }

/* Toggle button hidden on desktop */
.nav-toggle { display: none; margin-right: 8px; }

/* Responsive navigation */
@media (max-width: 790px) {
    .nav { flex-wrap: wrap; align-items: flex-start; }
    .nav-left { width: 100%; display: flex; align-items: center; }
    .nav-toggle { display: inline-block; }
    .nav-left ul#navMenu { display: none; flex-direction: column; width: 100%; margin-top: 8px; gap: 8px; }
    .nav-left ul#navMenu.open { display: flex; }
    .nav-left ul#navMenu li a { width: 100%; }
    .nav-right { display: none; }
}

/* ===== Content Area ===== */
.content {
    padding: 25px;
    background: #000 ;
    min-height: 400px;
}

/* ===== Sidebar ===== */
.sidebar {
    float: left;
    width: 100%;
    margin-right: 20px;
    background-color: #111;
    padding: 10px;
    border: 1px solid #333;
}

/* ===== Main Content ===== */
.main-content {
    float: left;
    width: 100%;
}

/* ===== Profile Elements ===== */
.profile-box {
    background-color: #1A1A1A;
    border: 1px solid #333;
    margin-bottom: 15px;
    padding: 10px;
}

.profile-box h3 {
    color: #E60000;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ===== Status Updates ===== */
.status-update {
    background-color: #1A1A1A;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 15px;
}

.status-header {
    color: #A6A6A6;
    font-size: 10px;
    margin-bottom: 5px;
}

/* ===== Buttons ===== */
.button {
    display: inline-block;
    background: #333;
    color: #FFF !important;
    padding: 3px 10px;
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none !important;
}

.button:hover {
    background: #444;
    text-decoration: none !important;
}

.button.primary {
    background: #E60000;
    border-color: #FF3333;
}

.button.primary:hover {
    background: #FF3333;
}

/* Divider utility */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #A6A6A6;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider:not(:empty)::before { margin-right: 1em; }
.divider:not(:empty)::after { margin-left: 1em; }

/* ===== Forms ===== */
input[type="text"],
input[type="password"],
textarea {
    background-color: #000;
    border: 1px solid #333;
    color: #FFF;
    padding: 5px;
    margin: 3px 0;
    width: 200px;
}

textarea {
    width: 98%;
    height: 100px;
}

/* ===== Friend List ===== */
.friend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.friend {
    text-align: center;
    font-size: 11px;
}

.friend img {
    width: 50px;
    height: 50px;
    border: 1px solid #333;
    margin-bottom: 5px;
}

.link-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

/****TRIBE*********/
.tribe {
    display: inline-block;
    width: 100%;
    font-family: "Press Start 2P", "Courier New", monospace; /* opcional: fuente pixelada */
    font-weight: 700;
    font-size: 1.1rem; /* tamaño tipo h3 compacto (ajusta si quieres) */
    letter-spacing: 1px;
    color: var(--text-primary,#E60000);
    position: relative;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.6);
    text-transform: uppercase;
    cursor: default;
    /* texto con contorno pixelado */
    text-shadow: -1px -1px 0 rgba(0,0,0,0.9), 1px -1px 0 rgba(0,0,0,0.9), -1px 1px 0 rgba(0,0,0,0.9), 1px 1px 0 rgba(0,0,0,0.9);
    /* animación de glow (se reproduce solo al hover/focus) */
    transition: transform 160ms ease, box-shadow 160ms ease;
    outline: none;
}

/* Glow keyframes */
@@keyframes pulseGlow {
    0% {
        text-shadow: -1px -1px 0 rgba(0,0,0,0.9), 0 0 0 rgba(0,0,0,0);
    }

    20% {
        text-shadow: -1px -1px 0 rgba(0,0,0,0.9), 0 0 6px rgba(255,59,138,0.32);
    }

    50% {
        text-shadow: -1px -1px 0 rgba(0,0,0,0.9), 0 0 14px rgba(255,59,138,0.55), 0 0 28px rgba(255,59,138,0.28);
    }

    100% {
        text-shadow: -1px -1px 0 rgba(0,0,0,0.9), 0 0 6px rgba(255,59,138,0.32);
    }
}
/* Activación del glow y pequeño efecto "pop" al hover/focus */
.tribe:hover,
.tribe:focus {
    transform: translateY(-3px) scale(1.02);
    animation: pulseGlow 1.6s infinite;
    box-shadow: var(--shadow-strong);
    z-index: 5;
}

/* TOOLTIP — usa el atributo data-tooltip para el texto del tooltip */
.tribe::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(12px) scale(0.96);
    display: block;
    /* MULTILÍNEA + ANCHO MÁXIMO */
    white-space: normal;
    max-width: 350px;
    word-wrap: break-word;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: var(--radius);
    background: var(--tooltip-bg);
    color: var(--tooltip-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    transform-origin: center bottom;
    z-index: 10;
}

.tribe::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%) rotate(45deg) scale(0.9);
    width: 10px;
    height: 10px;
    background: var(--tooltip-bg);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 9;
}

.tribe:hover::after,
.tribe:focus::after,
.tribe:hover::before,
.tribe:focus::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
/* Soporte para usuarios que prefieren reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    .tribe, .tribe::after, .tribe::before {
        transition: none !important;
        animation: none !important;
    }
}

/* Utilidad para lectores de pantalla (oculto visualmente) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/*====SPINNER======*/
.retro-loader-box {
    padding: 25px 40px;
    border: 2px solid var(--secondary-color, #E60000);
    background: var(--bg-color-solid, #000);
    box-shadow: 0 0 15px var(--secondary-color, #E60000);
    border-radius: 4px;
}

.retro-loader-screen {
    position: relative;
    width: 220px;
    height: 90px;
    background: #111;
    border: 2px inset var(--primary-color, #A6A6A6);
    overflow: hidden;
}

/* Scanline CRT */
.retro-scanline {
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient( rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.1) 50% );
    background-size: 100% 4px;
    animation: scan 1.5s linear infinite;
}

@keyframes scan {
    to {
        top: 100%;
    }
}

/* Spinner retro */
.retro-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--primary-color, #A6A6A6);
    border-top-color: var(--secondary-color, #E60000);
    border-radius: 50%;
    margin: 18px auto 10px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Texto tipo PC viejo */
.retro-text {
    text-align: center;
    font-size: 14px;
    color: var(--secondary-color, #E60000);
    letter-spacing: 1px;
    text-shadow: 0 0 6px var(--secondary-color, #E60000);
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

/* Themed audio player */
.retro-player {
    width: 100%;
    background: var(--bg-color-solid, #000);
    border: 2px solid var(--text-primary, #A6A6A6);
    padding: 14px;
    border-radius: 4px;
    color: var(--text-primary, #A6A6A6);
    font-family: monospace;
    box-shadow: 0 0 5px var(--secondary-color, #E60000);
}

/* CABECERA */
.retro-header {
    background: linear-gradient(180deg, #222, #111);
    color: var(--secondary-color, #E60000);
    padding: 6px 8px;
    border: 2px solid var(--text-primary, #A6A6A6);
    font-size: 14px;
    margin-bottom: 10px;
}

/* ZONA CENTRAL DEL PLAYER */
.retro-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* BOTÓN PLAY */
.retro-btn {
    width: 48px;
    height: 48px;
    background: #111;
    color: var(--accent-color, #E60000);
    border: 2px solid var(--text-primary, #A6A6A6);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #333;
    filter: none !important;
}

    .retro-btn:active {
        transform: translateY(1px);
    }

/* TIEMPOS */
.retro-time {
    color: var(--text-primary, #A6A6A6);
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
    font-size: 13px;
}

    .retro-time .sep {
        color: #777;
    }

/* SEEK BAR */
.retro-seek {
    width: 100%;
    height: 10px;
    appearance: none;
    border-radius: 2px;
    border: 2px solid #333;
    background: linear-gradient(to right, var(--secondary-color, #E60000) 0%, #222 0%);
}

    .retro-seek::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 14px;
        height: 14px;
        border: 2px solid var(--secondary-color, #E60000);
        background: #111;
        box-shadow: 2px 2px 0 #000;
        border-radius: 2px;
        cursor: pointer;
    }

    .retro-seek::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border: 2px solid var(--secondary-color, #E60000);
        background: #111;
        cursor: pointer;
    }

/* FOOTER */
.retro-footer {
    margin-top: 12px;
    color: var(--text-primary, #A6A6A6);
    font-size: 12px;
    text-align: center;
}

/* CONTENEDOR DEL MARQUEE */
.retro-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid var(--secondary-color, #E60000);
    padding: 4px 8px;
    margin-top: 6px;
    background: var(--bg-color-solid, #000);
    box-shadow: 0 0 4px var(--secondary-color, #E60000);
    font-size: 12px;
}

/* TEXTO QUE SE MUEVE */
.retro-marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: retroScroll 12s linear infinite;
    color: var(--secondary-color, #E60000);
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
}

/* ANIMACIÓN */
@keyframes retroScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}



/* ===== Footer ===== */
.footer {
    clear: both;
    background-color: #1A1A1A;
    color: #A6A6A6;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    border-top: 1px solid #333;
}
/* ===== Clearfix ===== */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 1000px) {
    .container {
        width: 100%;
    }
    
    .sidebar {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .main-content {
        float: none;
        width: 100%;
    }
}

/* ===== Form Controls ===== */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #A6A6A6;
    font-weight: bold;
}

/* Text Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #111;
    border: 1px solid #333;
    color: #FFF;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #E60000;
    box-shadow: 0 0 5px rgba(230, 0, 0, 0.5);
    outline: none;
}

/* Checkboxes and Radios */
.form-check {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    background-color: #111;
    border: 1px solid #333;
    position: relative;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #E60000;
    border-color: #FF3333;
}

.form-check-label {
    color: #A6A6A6;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px 0;
    background-color: #333;
    color: #FFF;
    border: 1px solid #555;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #444;
    text-decoration: none;
}

.btn-primary {
    background-color: #E60000;
    border-color: #FF3333;
}

.btn-primary:hover {
    background-color: #FF3333;
}

/* Progress Bar */
.progress {
    height: 20px;
    background-color: #111;
    border: 1px solid #333;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 3px;
}

.progress-bar {
    height: 100%;
    background-color: #E60000;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    transition: width 0.6s ease;
}

/* Toastr Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
}

.toast {
    background-color: #1A1A1A;
    border: 1px solid #333;
    border-left: 4px solid #E60000;
    color: #FFF;
    padding: 15px 20px;
    margin-bottom: 10px;
    min-width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #E60000;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-warning {
    border-left-color: #ffc107;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    background-color: var(--bg-color-solid, #1A1A1A);
    border: 1px solid var(--secondary-color, #333);
    width: 90%;
    max-width: 500px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--secondary-color, #333);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: var(--secondary-color, #E60000);
    font-size: 18px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
}

.close {
    background: none;
    border: none;
    color: #A6A6A6;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close:hover {
    color: #FFF;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #FFF;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background-color: #111;
    border: 1px solid #333;
    color: #FFF;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #E60000;
    box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.2);
    outline: none;
}

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Form Validation */
.is-invalid {
    border-color: #E60000 !important;
}

.invalid-feedback {
    color: #E60000;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

input:invalid + .form-hint {
    color: #E60000;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--secondary-color,#E60000);
    color: #FFF;
}

.btn-primary:hover {
    background-color: #FF3333;
}

.btn-secondary {
    background-color: #333;
    color: #FFF;
}

.btn-secondary:hover {
    background-color: #444;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}


.modal-content {
    background-color: var(--bg-color-solid, #1A1A1A);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color, #333);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color, #E60000);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h4 {
    color: #E60000;
    margin: 20px 0 10px;
    font-size: 16px;
}

.modal-body p, .modal-body ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
}

.close-modal {
    color: #A6A6A6;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 10px;
    line-height: 1;
}

.close-modal:hover {
    color: #FFF;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Custom Checkbox and Radio */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #111;
    border: 1px solid #333;
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0.25rem;
}

.custom-radio .custom-control-label::before {
    border-radius: 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #E60000;
    background-color: #E60000;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Datepicker */
.profile-page .ui-datepicker {
    background: var(--bg-color, #1A1A1A);
    border: 1px solid #333;
    padding: 10px;
    color: var(--text-primary, #FFF);
}

.profile-page .ui-datepicker-header {
    background: #111;
    color: var(--text-primary, #FFF);
    border: 1px solid #333;
    font-weight: bold;
}

.profile-page .ui-datepicker-prev,
.profile-page .ui-datepicker-next {
    cursor: pointer;
    color: var(--accent-color, #FF3333);
}

.profile-page .ui-datepicker-calendar th {
    color: var(--text-primary, #A6A6A6);
}

.profile-page .ui-datepicker-calendar td a {
    color: var(--text-primary, #FFF);
    text-align: center;
    display: block;
    padding: 5px;
    text-decoration: none;
}

.profile-page .ui-datepicker-calendar td a:hover {
    background: #222;
}

.profile-page .ui-datepicker-calendar .ui-state-active {
    background: var(--secondary-color, #E60000);
    color: #FFF;
}

/* Date input control colors */
.profile-page input[type="date"] {
    background-color: #111;
    color: var(--text-primary, #A6A6A6);
    border: 1px solid #333;
}
.profile-page input[type="date"]:focus {
    border-color: var(--secondary-color, #E60000);
    box-shadow: 0 0 5px color-mix(in srgb, var(--secondary-color, #E60000) 50%, transparent);
}

/* ===== Scrollbars (Themed) ===== */
/* Firefox */
html {
    scrollbar-color: #E60000 #333; /* thumb color, track color */
    scrollbar-width: thin;
}

/* WebKit-based browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #333;
}

::-webkit-scrollbar-thumb {
    background-color: #E60000; /* match primary buttons/accent */
    border-radius: 8px;
    border: 2px solid #333; /* creates spacing and matches track */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #FF3333; /* match hover state */
}

/* ===== Responsive (Global, non-disruptive) ===== */
@media (max-width: 1024px) {
    .profile-page .profile-box { padding: 10px; }
}

@media (max-width: 900px) {
    /* Stack profile grid to one column */
    .profile-page .profile-grid { grid-template-columns: 1fr !important; }
    /* Theme form grid to one column */
    .profile-page .grid { grid-template-columns: 1fr !important; }
    /* Buttons full width inside profile forms */
    .profile-page .profile-box form .btn { width: 100%; }
    .profile-page .profile-box form .btn + .btn { margin-top: 6px; }
    /* Edit view previews (safe: IDs only exist allí) */
    #currentBgPreview { width: 140px !important; height: 56px !important; }
    #newBgPreview { width: 120px !important; height: 48px !important; }
    #currentBannerPreview { width: 180px !important; height: 64px !important; }
    #newBannerPreview { width: 140px !important; height: 54px !important; }
    #currentProfilePreview { width: 64px !important; height: 64px !important; }
    #newProfilePreview { width: 48px !important; height: 48px !important; }
    /* Iframe and theme preview heights */
    #customPreviewFrame { height: 180px !important; }
    #themePreview { min-height: 200px !important; }
    /* Wrap preview rows that use inline display:flex to avoid overflow */
    .profile-page .form-group[style*="display:flex"] { flex-wrap: wrap; }
    .profile-page .form-group[style*="display:flex"] > * { margin-bottom: 6px; }
    /* Ensure container spans full width on small screens */
    .profile-page .container { max-width: 100% !important; padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 600px) {
    .profile-page h2 { font-size: 1.25rem; }
    .profile-page .box-title { font-size: 0.95rem; }
    .profile-page .form-label { font-size: 0.9rem; }
    .profile-page .form-hint { font-size: 0.8rem; }
    .profile-page .profile-box { padding: 8px; }
}
