/* dashboard-usuario.css */
@font-face {
    font-family: "Sergio Trending";
    src: url("/fonts/SergioTrending.woff2") format("woff2"), url("/fonts/SergioTrending.woff") format("woff");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a0c24;
    --text: #111;
    --muted: #666;
    --border: #ddd;
    --line: #111;
    --input-bg: #f7f7f7;
    --input-border: #cfcfcf;
    --space-top: 64px;
    --title-bottom-gap: 40px;
}

/* Loader */
#fallback-screen {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000323;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 9999;
}

.loader {
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #f3c37d;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    animation: spin 2s linear infinite;
    margin-bottom: 28px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Estructura */
.tab-wrapper {
    max-width: 1100px;
    margin: var(--space-top) auto 0;
    font-family: Arial, sans-serif;
}

h2#page-title.tab-title {
    font-family: "Sergio Trending", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
    font-size: 32px;
    font-weight: 700;
    color: #e6eaf2;
    margin: 0 0 var(--title-bottom-gap) !important;
    line-height: 1.15;
    letter-spacing: .2px;
}

.tab-container {
    display: flex;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

/* Menu Lateral */
.tab-menu {
    flex: 0 0 180px;
    padding-right: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tab-menu::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.tab-menu button {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
    transition: color .2s;
}

.tab-menu button.active,
.tab-menu button:hover {
    color: var(--text);
    font-weight: 700;
}

/* Contenido */
.tab-content {
    flex: 1;
    padding-left: 34px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Formularios */
.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 260px;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text);
}

.form-field input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
}

.form-field input[readonly] {
    cursor: default;
}

/* Botones */
.btn-logout {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.btn-logout:hover {
    background: #cf3f30;
}

.btn-logout:disabled {
    opacity: .7;
    cursor: default;
}

.btn-reset {
    background: #3a91f2;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 0 #2a6fb6;
    margin-bottom: 23px;
}

.btn-reset:hover {
    background: #2f7bd1;
}

/* Avisos */
.small {
    font-size: 13px;
    color: #666;
}

.state-ok {
    color: #2e7d32;
}

.state-err {
    color: #e53935;
}

#perfil-aviso {
    display: none;
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffeeba;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
    }

    .tab-menu {
        border: 0;
        padding-right: 0;
        margin-bottom: 14px;
    }

    .tab-menu::after {
        display: none;
    }

    .tab-content {
        padding-left: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-field {
        min-width: 100%;
    }
}