
/* =========================================
   AUREVANT CIRCUS
   ADMINISTRATION — LOGIN
========================================= */

:root {
    --carmine: #701F2B;
    --smoke: #171515;
    --gold: #B08A50;
    --ivory: #E8DDC9;
    --wine: #421820;
    --ash: #928B83;
}

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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--smoke);
    color: var(--ivory);
    font-family: "Lato", sans-serif;
    overflow-x: hidden;
}

/* BACKGROUND */

.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            ellipse at 50% 40%,
            rgba(112, 31, 43, 0.25),
            transparent 55%
        ),
        radial-gradient(
            ellipse at bottom right,
            rgba(176, 138, 80, 0.10),
            transparent 45%
        ),
        #171515;
}

.login-background::before {
    content: "";
    position: absolute;
    inset: 18px;

    border: 1px solid rgba(176, 138, 80, 0.16);

    pointer-events: none;
}

/* PAGE */

.login-page {
    position: relative;
    z-index: 1;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;
}

/* LOGIN CARD */

.login-card {
    width: 100%;
    max-width: 460px;

    padding: 55px 48px 38px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(37, 28, 29, 0.96),
            rgba(23, 21, 21, 0.98)
        );

    border: 1px solid rgba(176, 138, 80, 0.30);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        inset 0 0 45px rgba(112, 31, 43, 0.06);
}

/* BRAND */

.login-eyebrow {
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--gold);
}

/* DIVIDER */

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin: 25px 0;
}

.login-divider span:not(.divider-symbol) {
    width: 65px;
    height: 1px;
    background: rgba(176, 138, 80, 0.55);
}

.divider-symbol {
    color: var(--gold);
    font-size: 14px;
}

/* TITLES */

.login-card h1 {
    font-family: "Cinzel", serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 4px;
    line-height: 1.5;
}

.login-subtitle {
    margin-top: 13px;

    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-style: italic;

    color: var(--gold);
}

.login-description {
    margin-top: 8px;

    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--ash);
}

/* FORM */

#loginForm {
    margin-top: 42px;
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;

    margin-bottom: 11px;

    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 2px;

    color: var(--gold);
}

.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 15px;

    background: rgba(0, 0, 0, 0.22);

    border: 1px solid rgba(176, 138, 80, 0.25);
    border-radius: 0;

    outline: none;

    color: var(--ivory);
    font-family: "Lato", sans-serif;
    font-size: 13px;

    transition: border-color 0.3s ease,
                background 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(232, 221, 201, 0.35);
}

.form-group input:focus {
    border-color: var(--gold);
    background: rgba(112, 31, 43, 0.10);
}

/* LOGIN MESSAGE */

.login-message {
    min-height: 18px;
    margin-bottom: 12px;

    text-align: center;
    font-size: 12px;
    color: #d58b8b;
}

/* BUTTON */

#loginButton {
    width: 100%;
    height: 49px;

    border: 1px solid var(--gold);
    border-radius: 0;

    background: var(--wine);

    color: var(--ivory);

    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 3px;

    cursor: pointer;

    transition: background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}

#loginButton:hover {
    background: var(--gold);
    color: var(--smoke);
}

#loginButton:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* RETURN LINK */

.return-link {
    display: inline-block;

    margin-top: 30px;

    color: var(--ash);
    text-decoration: none;

    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;

    transition: color 0.3s ease;
}

.return-link:hover {
    color: var(--gold);
}

/* FOOTER */

.login-footer {
    margin-top: 42px;
    padding-top: 20px;

    border-top: 1px solid rgba(176, 138, 80, 0.15);

    font-size: 8px;
    letter-spacing: 2px;

    color: rgba(146, 139, 131, 0.65);
}

/* RESPONSIVE */

@media (max-width: 520px) {

    .login-card {
        padding: 45px 25px 30px;
    }

    .login-card h1 {
        font-size: 21px;
        letter-spacing: 3px;
    }

    .login-subtitle {
        font-size: 24px;
    }

    .login-background::before {
        inset: 10px;
    }

}


/* =========================================
   AUREVANT CIRCUS
   ADMINISTRATION — DASHBOARD
========================================= */

/* BACKGROUND */

.dashboard-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at top right,
            rgba(112, 31, 43, 0.18),
            transparent 45%
        ),
        #171515;
}

/* DASHBOARD LAYOUT */

.dashboard-layout {
    position: relative;
    z-index: 1;

    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 270px;
    padding: 42px 25px 25px;

    display: flex;
    flex-direction: column;

    background: rgba(19, 17, 17, 0.97);
    border-right: 1px solid rgba(176, 138, 80, 0.22);

    z-index: 5;
}

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

.sidebar-brand span {
    display: block;

    font-family: "Cinzel", serif;
    font-size: 23px;
    letter-spacing: 5px;

    color: var(--gold);
}

.sidebar-brand small {
    display: block;
    margin-top: 8px;

    font-size: 8px;
    letter-spacing: 2px;

    color: var(--ash);
}

.sidebar-divider {
    margin: 35px 0;

    text-align: center;
    color: var(--gold);
    font-size: 15px;
}

/* NAVIGATION */

.admin-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-link {
    position: relative;

    width: 100%;
    padding: 15px 13px;

    text-align: left;

    background: transparent;
    border: 1px solid transparent;

    color: var(--ash);

    font-family: "Lato", sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition: 0.3s ease;
}

.admin-nav-link:hover {
    color: var(--ivory);
    background: rgba(112, 31, 43, 0.12);
}

.admin-nav-link.active {
    color: var(--gold);

    background: rgba(112, 31, 43, 0.16);
    border-color: rgba(176, 138, 80, 0.22);
}

.admin-nav-link.active::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 2px;
    background: var(--gold);
}

/* SIDEBAR BOTTOM */

.sidebar-bottom {
    margin-top: auto;

    display: flex;
    flex-direction: column;
    gap: 18px;

    padding-top: 25px;
    border-top: 1px solid rgba(176, 138, 80, 0.15);
}

.sidebar-bottom a {
    text-align: center;

    color: var(--ash);
    text-decoration: none;

    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;

    transition: color 0.3s ease;
}

.sidebar-bottom a:hover {
    color: var(--gold);
}

#logoutButton {
    width: 100%;
    padding: 13px;

    background: transparent;
    border: 1px solid rgba(112, 31, 43, 0.7);

    color: var(--ivory);

    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 2px;

    cursor: pointer;
    transition: 0.3s ease;
}

#logoutButton:hover {
    background: var(--wine);
    border-color: var(--gold);
}

/* MAIN CONTENT */

.dashboard-content {
    width: calc(100% - 270px);
    min-height: 100vh;

    margin-left: 270px;
    padding: 45px 55px 25px;
}

/* HEADER */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding-bottom: 30px;
    border-bottom: 1px solid rgba(176, 138, 80, 0.20);
}

.dashboard-eyebrow {
    margin-bottom: 10px;

    font-size: 9px;
    letter-spacing: 3px;

    color: var(--ash);
}

.dashboard-header h1 {
    font-family: "Cinzel", serif;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: 2px;

    color: var(--ivory);
}

.admin-identity {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 17px;

    border: 1px solid rgba(176, 138, 80, 0.20);
    background: rgba(112, 31, 43, 0.10);
}

.identity-symbol {
    color: var(--gold);
    font-size: 22px;
}

.admin-identity p {
    font-size: 12px;
    color: var(--ivory);
}

.admin-identity small {
    display: block;
    margin-top: 5px;

    font-size: 9px;
    letter-spacing: 1px;

    color: var(--gold);
}

/* VIEWS */

.admin-view {
    display: none;
    padding-top: 35px;
}

.admin-view.active-view {
    display: block;
}

/* WELCOME PANEL */

.welcome-panel {
    position: relative;
    overflow: hidden;

    padding: 42px 40px;

    background:
        linear-gradient(
            110deg,
            rgba(112, 31, 43, 0.24),
            rgba(23, 21, 21, 0.65)
        );

    border: 1px solid rgba(176, 138, 80, 0.23);
}

.welcome-panel::after {
    content: "✦";

    position: absolute;
    right: 45px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 95px;
    color: rgba(176, 138, 80, 0.10);
}

.panel-eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--gold);
}

.welcome-panel h2 {
    margin-top: 15px;

    font-family: "Cormorant Garamond", serif;
    font-size: 37px;
    font-weight: 500;

    color: var(--ivory);
}

.welcome-panel > p:last-child {
    max-width: 520px;
    margin-top: 12px;

    font-size: 12px;
    line-height: 1.8;

    color: var(--ash);
}

/* DEPARTMENTS */

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 40px 0 22px;
}

.dashboard-section-heading h2 {
    font-family: "Cinzel", serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;

    color: var(--gold);
}

.dashboard-section-heading span {
    color: var(--gold);
}

.admin-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-module {
    padding: 25px;

    background: rgba(31, 26, 26, 0.75);
    border: 1px solid rgba(176, 138, 80, 0.16);

    transition: border-color 0.3s ease,
                background 0.3s ease;
}

.admin-module:hover {
    background: rgba(112, 31, 43, 0.12);
    border-color: rgba(176, 138, 80, 0.42);
}

.module-number {
    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
}

.admin-module h3 {
    margin-top: 16px;

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 500;

    color: var(--ivory);
}

.admin-module p {
    min-height: 38px;
    margin-top: 9px;

    font-size: 11px;
    line-height: 1.7;

    color: var(--ash);
}

.admin-module button {
    margin-top: 20px;
    padding: 10px 13px;

    background: transparent;
    border: 1px solid rgba(176, 138, 80, 0.35);

    color: var(--gold);

    font-family: "Cinzel", serif;
    font-size: 8px;
    letter-spacing: 1.5px;

    cursor: pointer;
    transition: 0.3s ease;
}

.admin-module button:hover {
    background: var(--gold);
    color: var(--smoke);
}

/* EMPTY DEPARTMENTS */

.empty-department {
    min-height: 380px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px solid rgba(176, 138, 80, 0.18);
    background: rgba(31, 26, 26, 0.55);
}

.empty-department span {
    color: var(--gold);
    font-size: 27px;
}

.empty-department h2 {
    margin-top: 20px;

    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 500;
}

.empty-department p {
    margin-top: 10px;

    font-size: 11px;
    color: var(--ash);
}

/* FOOTER */

.dashboard-footer {
    margin-top: 45px;
    padding: 20px 0;

    border-top: 1px solid rgba(176, 138, 80, 0.15);

    text-align: center;

    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(146, 139, 131, 0.65);
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .admin-sidebar {
        width: 230px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .dashboard-content {
        width: calc(100% - 230px);
        margin-left: 230px;
        padding: 35px 25px;
    }

}

@media (max-width: 700px) {

    .dashboard-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 25px 18px;

        border-right: none;
        border-bottom: 1px solid rgba(176, 138, 80, 0.22);
    }

    .sidebar-divider {
        margin: 18px 0;
    }

    .admin-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .admin-nav-link {
        padding: 12px 8px;
        font-size: 10px;
    }

    .sidebar-bottom {
        margin-top: 20px;
    }

    .dashboard-content {
        width: 100%;
        margin-left: 0;
        padding: 28px 18px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-modules {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        padding: 30px 24px;
    }

    .welcome-panel h2 {
        font-size: 30px;
    }

    .welcome-panel::after {
        right: 15px;
        font-size: 65px;
    }

}


/* =========================================
   AUREVANT CIRCUS
   MOBILE SIDEBAR ADAPTATION
========================================= */

/* El botón solo aparece en teléfonos */

.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: #1b1515;
    border: 1px solid #49302a;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.sidebar-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: #b08a50;
}

/* Fondo que aparece detrás del menú */

.sidebar-overlay {
    display: none;
}

/* ADAPTACIÓN PARA TELÉFONOS */

@media (max-width: 700px) {

    .dashboard-layout {
        display: block;
        min-height: 100vh;
    }

    /* BARRA LATERAL DESPLEGABLE */

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;

        width: min(290px, 84vw);
        height: 100vh;
        height: 100dvh;

        padding: 30px 20px;
        z-index: 1002;

        display: flex;
        flex-direction: column;

        overflow-y: auto;

        background: #141111;
        border-right: 1px solid #49302a;
        border-bottom: none;

        transform: translateX(-105%);
        transition: transform 0.3s ease;
    }

    .dashboard-layout.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-navigation {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .admin-nav-link {
        width: 100%;
        text-align: left;
    }

    .sidebar-bottom {
        margin-top: auto;
        padding-top: 25px;
    }

    /* FONDO OSCURO DEL MENÚ */

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 1001;

        width: 100%;
        height: 100%;
        padding: 0;

        border: none;
        background: rgba(0, 0, 0, 0.68);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.3s ease,
                    visibility 0.3s ease;
    }

    .dashboard-layout.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* ENCABEZADO */

    .dashboard-content {
        width: 100%;
        margin-left: 0;
        padding: 22px 18px;
    }

    .dashboard-header {
        display: grid;
        grid-template-columns: 42px 1fr;
        align-items: center;
        gap: 14px;

        padding-bottom: 22px;
        margin-bottom: 28px;
    }

    .sidebar-toggle {
        display: flex;
        grid-column: 1;
        grid-row: 1;
    }

    .dashboard-heading {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .admin-identity {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .dashboard-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .dashboard-header h1 {
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.2;
    }

    /* BIENVENIDA */

    .welcome-panel {
        padding: 30px 24px;
    }

    .welcome-panel h2 {
        font-size: clamp(27px, 7vw, 34px);
    }

    .welcome-panel p {
        line-height: 1.7;
    }

    /* DEPARTAMENTOS */


.admin-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-module {
    padding: 20px 14px;
    min-width: 0;
}

.admin-module h3 {
    font-size: 19px;
    line-height: 1.25;
}

.admin-module p {
    font-size: 12px;
    line-height: 1.5;
}

.admin-module button {
    width: 100%;
    padding: 10px 6px;
    font-size: 8px;
    letter-spacing: 1px;
}

    .admin-module {
        padding: 25px 22px;
    }

    .dashboard-section-heading {
        margin-top: 32px;
    }

    .dashboard-section-heading h2 {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    /* PIE DE PÁGINA */

    .dashboard-footer {
        margin-top: 35px;
        text-align: center;
    }

}


/* =========================================
   AUREVANT CIRCUS
   ROLE PROPOSALS DEPARTMENT
========================================= */

.department-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
}

.department-eyebrow {
    display: block;
    color: #b08a50;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.department-header h2 {
    color: #e8ddc9;
    font-family: "Cinzel", serif;
    font-size: 27px;
    font-weight: 500;
    margin-bottom: 12px;
}

.department-header p {
    color: #928b83;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    line-height: 1.6;
}

/* RESUMEN */

.proposal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.proposal-stat {
    padding: 23px 20px;
    background: #171414;
    border: 1px solid #352824;
}

.stat-label {
    display: block;
    color: #928b83;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 1.4px;
    line-height: 1.6;
    margin-bottom: 13px;
}

.proposal-stat strong {
    color: #b08a50;
    font-family: "Cinzel", serif;
    font-size: 29px;
    font-weight: 400;
}

/* REGISTRO */

.proposals-container {
    background: #171414;
    border: 1px solid #352824;
    padding: 27px;
}

.proposals-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #352824;
    margin-bottom: 20px;
}

.proposals-toolbar h3 {
    color: #e8ddc9;
    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 7px;
}

.proposals-toolbar p {
    color: #928b83;
    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
}

.proposals-toolbar button {
    padding: 12px 17px;
    background: transparent;
    border: 1px solid #65452f;
    color: #b08a50;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: 0.25s ease;
}

.proposals-toolbar button:hover {
    background: #701f2b;
    border-color: #8a3942;
    color: #e8ddc9;
}

/* ESTADOS DE CARGA */

.proposals-loading {
    padding: 45px 15px;
    color: #928b83;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;
    text-align: center;
}

/* RESPONSIVE */

@media (max-width: 850px) {

    .proposal-stats {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 550px) {

    .department-header h2 {
        font-size: 22px;
    }

    .proposal-stats {
        gap: 10px;
    }

    .proposal-stat {
        padding: 18px 14px;
    }

    .stat-label {
        font-size: 8px;
    }

    .proposal-stat strong {
        font-size: 24px;
    }

    .proposals-container {
        padding: 18px 14px;
    }

    .proposals-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================
   AUREVANT CIRCUS
   PROPOSAL CARDS
========================================= */

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.proposal-admin-card {
    padding: 25px 28px;
    background: linear-gradient(135deg, #1d1818, #151212);
    border: 1px solid #40302a;
    border-left: 3px solid #b08a50;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.proposal-admin-card:hover {
    border-color: #76533b;
    background: #201919;
}

/* ENCABEZADO */

.proposal-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.proposal-admin-title {
    color: #e8ddc9;
    font-family: "Cinzel", serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ESTADOS */

.proposal-status {
    flex-shrink: 0;
    padding: 7px 11px;
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    letter-spacing: 1.3px;
    border: 1px solid;
}

.proposal-status.pending {
    color: #c6a36c;
    border-color: #765c36;
    background: rgba(176, 138, 80, 0.08);
}

.proposal-status.approved {
    color: #9db59a;
    border-color: #52694f;
    background: rgba(100, 140, 95, 0.08);
}

.proposal-status.rejected {
    color: #bd8585;
    border-color: #754448;
    background: rgba(112, 31, 43, 0.12);
}

/* DESCRIPCIÓN */

.proposal-admin-description {
    color: #c1b5a8;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-bottom: 20px;
}

/* INFORMACIÓN */

.proposal-admin-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #352824;
    color: #928b83;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* BOTONES */

.proposal-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.proposal-admin-actions button {
    min-height: 39px;
    padding: 10px 17px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: 0.25s ease;
}

.proposal-accept {
    background: #701f2b;
    border: 1px solid #8a3942;
    color: #e8ddc9;
}

.proposal-accept:hover {
    background: #8a2938;
    border-color: #b08a50;
}

.proposal-reject {
    background: transparent;
    border: 1px solid #65452f;
    color: #b9a99a;
}

.proposal-reject:hover {
    border-color: #a65b5b;
    color: #d69b9b;
}

/* ESTADOS VACÍOS Y ERRORES */

.proposals-empty,
.proposals-error {
    padding: 45px 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    text-align: center;
    line-height: 1.6;
}

.proposals-empty {
    color: #928b83;
    font-style: italic;
}

.proposals-error {
    color: #bd8585;
}

/* RESPONSIVE */

@media (max-width: 600px) {

    .proposal-admin-card {
        padding: 20px 17px;
    }

    .proposal-admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .proposal-admin-title {
        font-size: 17px;
    }

    .proposal-admin-details {
        flex-direction: column;
    }

    .proposal-admin-actions {
        flex-direction: column;
    }

    .proposal-admin-actions button {
        width: 100%;
    }
}

/* =========================================
   GESTIÓN DE CUENTAS
========================================= */

.account-management-panel {
    margin-top: 35px;
    padding: 30px;
    background: rgba(30, 25, 24, 0.65);
    border: 1px solid rgba(176, 138, 80, 0.2);
}

.account-management-panel .proposals-toolbar {
    border-bottom: 1px solid rgba(176, 138, 80, 0.2);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.account-form label {
    color: #B08A50;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

.account-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    background: #171515;
    border: 1px solid rgba(176, 138, 80, 0.35);
    color: #E8DDC9;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.account-form input:focus {
    border-color: #B08A50;
}

.account-form input::placeholder {
    color: #928B83;
}

.account-form button {
    align-self: flex-start;
    margin-top: 10px;
    padding: 13px 24px;
    background: #701F2B;
    border: 1px solid #B08A50;
    color: #E8DDC9;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.account-form button:hover {
    background: #421820;
}

.account-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#inviteAdminMessage {
    min-height: 20px;
    color: #B08A50;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}


/* =========================================
   BOTÓN DE ACTIVACIÓN DE CUENTA
========================================= */

#activationButton {
    width: 100%;
    margin-top: 15px;
    padding: 15px 20px;

    background: #701F2B;
    border: 1px solid #B08A50;

    color: #E8DDC9;

    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;

    cursor: pointer;

    transition: all 0.3s ease;
}

#activationButton:hover {
    background: #421820;
    border-color: #D0AC70;
    box-shadow: 0 0 15px rgba(176, 138, 80, 0.15);
}

#activationButton:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


/* =========================================
   AUREVANT CIRCUS
   ACCOUNT MANAGEMENT — ACCOUNT CARDS
========================================= */

.account-management-panel {
    position: relative;
    overflow: hidden;
}

.account-management-panel > h2,
.account-management-panel > h3 {
    color: var(--ivory);
    font-family: "Cinzel", serif;
    font-weight: 500;
}

/* LISTAS DE CUENTAS */

#pendingAccountsList,
#rejectedAccountsList,
#adminAccountsList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TARJETAS */

.account-item-detailed {
    position: relative;
    padding: 23px 24px;
    background:
        linear-gradient(
            120deg,
            rgba(112, 31, 43, 0.13),
            rgba(23, 21, 21, 0.85)
        );
    border: 1px solid rgba(176, 138, 80, 0.20);
    border-left: 2px solid var(--gold);
    transition: border-color 0.3s ease,
                background 0.3s ease,
                transform 0.3s ease;
}

.account-item-detailed:hover {
    background: rgba(112, 31, 43, 0.13);
    border-color: rgba(176, 138, 80, 0.48);
    transform: translateY(-2px);
}

.account-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.account-item-information {
    min-width: 0;
    flex: 1;
}

.account-item-name {
    display: block;
    color: var(--ivory);
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.account-item-email {
    margin-top: 5px;
    color: #b7a99b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.account-item-date {
    display: block;
    margin-top: 12px;
    color: var(--ash);
    font-size: 10px;
    letter-spacing: 0.4px;
}

.account-item-permissions {
    margin-top: 13px;
    color: var(--gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ESTADOS DE CUENTAS */

.account-status {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid;
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    letter-spacing: 1.3px;
}

.account-status-pending {
    color: #c6a36c;
    border-color: #765c36;
    background: rgba(176, 138, 80, 0.08);
}

.account-status-rejected {
    color: #bd8585;
    border-color: #754448;
    background: rgba(112, 31, 43, 0.12);
}

.account-status-admin {
    color: #a8b99c;
    border-color: #52694f;
    background: rgba(100, 140, 95, 0.08);
}

/* BOTONES DE ACCIONES */

.account-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 17px;
    border-top: 1px solid rgba(176, 138, 80, 0.15);
}

.account-item-actions button {
    min-height: 38px;
    padding: 10px 15px;
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.account-action-primary {
    background: var(--wine);
    border: 1px solid var(--gold);
    color: var(--ivory);
}

.account-action-primary:hover {
    background: var(--gold);
    color: var(--smoke);
}

.account-action-danger {
    background: transparent;
    border: 1px solid rgba(166, 91, 91, 0.65);
    color: #c58c8c;
}

.account-action-danger:hover {
    background: rgba(112, 31, 43, 0.35);
    border-color: #bd8585;
    color: var(--ivory);
}

.account-item-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* =========================================
   AUREVANT CIRCUS
   ACCOUNT MANAGEMENT — PERMISSION MODAL
========================================= */

.account-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);

    animation: accountModalFade 0.25s ease;
}

@keyframes accountModalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.account-permission-modal {
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            #241b1b,
            #171515 75%
        );

    border: 1px solid rgba(176, 138, 80, 0.42);

    box-shadow:
        0 25px 90px rgba(0, 0, 0, 0.65),
        inset 0 0 40px rgba(112, 31, 43, 0.08);
}

/* ENCABEZADO DEL MODAL */

.account-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding-bottom: 20px;
    border-bottom: 1px solid rgba(176, 138, 80, 0.22);
}

.account-modal-header h3 {
    color: var(--ivory);
    font-family: "Cinzel", serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1px;
}

.account-modal-close {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    background: transparent;
    border: 1px solid rgba(176, 138, 80, 0.25);

    color: var(--gold);
    font-size: 23px;
    line-height: 1;

    cursor: pointer;
    transition: 0.25s ease;
}

.account-modal-close:hover {
    background: var(--wine);
    border-color: var(--gold);
    color: var(--ivory);
}

/* DESCRIPCIÓN */

.account-modal-description {
    margin-top: 20px;
    color: var(--ash);
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    line-height: 1.5;
}

.account-modal-account {
    margin-top: 13px;
    padding: 13px 15px;

    background: rgba(112, 31, 43, 0.12);
    border-left: 2px solid var(--gold);

    color: var(--gold);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* OPCIONES DE PERMISOS */

.account-modal-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

    margin-top: 25px;
}

.account-permission-option {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    background: rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(176, 138, 80, 0.16);

    color: var(--ivory);
    font-size: 12px;

    cursor: pointer;
    transition: 0.25s ease;
}

.account-permission-option:hover {
    background: rgba(112, 31, 43, 0.16);
    border-color: rgba(176, 138, 80, 0.42);
}

.account-permission-option:has(input:checked) {
    background: rgba(112, 31, 43, 0.20);
    border-color: var(--gold);
}

.account-permission-option input {
    width: 17px;
    height: 17px;
    flex-shrink: 0;

    accent-color: var(--gold);
    cursor: pointer;
}

/* MENSAJE DEL MODAL */

.account-modal-message {
    min-height: 20px;
    margin-top: 15px;

    color: #d69b9b;
    font-size: 11px;
    line-height: 1.5;
}

/* BOTONES DEL MODAL */

.account-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 20px;
    padding-top: 20px;

    border-top: 1px solid rgba(176, 138, 80, 0.17);
}

.account-modal-actions button {
    min-height: 42px;
    padding: 12px 17px;

    font-family: "Cinzel", serif;
    font-size: 9px;
    letter-spacing: 1px;

    cursor: pointer;
    transition: 0.25s ease;
}

.account-modal-cancel {
    background: transparent;
    border: 1px solid rgba(176, 138, 80, 0.30);
    color: var(--ash);
}

.account-modal-cancel:hover {
    border-color: var(--gold);
    color: var(--ivory);
}

.account-modal-save {
    background: var(--wine);
    border: 1px solid var(--gold);
    color: var(--ivory);
}

.account-modal-save:hover {
    background: var(--gold);
    color: var(--smoke);
}


/* =========================================
   ACCOUNT MANAGEMENT — RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .account-management-panel {
        padding: 20px 15px;
    }

    .account-item-detailed {
        padding: 19px 16px;
    }

    .account-item-main {
        flex-direction: column;
        gap: 13px;
    }

    .account-item-name {
        font-size: 21px;
    }

    .account-item-actions {
        flex-direction: column;
    }

    .account-item-actions button {
        width: 100%;
    }

    .account-permission-modal {
        padding: 25px 19px;
    }

    .account-modal-header h3 {
        font-size: 16px;
    }

    .account-modal-actions {
        flex-direction: column-reverse;
    }

    .account-modal-actions button {
        width: 100%;
    }

}
