/* =========================================================
   PALETA ADMIN - LOVING MUNDO MÁGICO
   ========================================================= */

:root {
    --morado-oscuro: #3C1C40;
    --violeta: #A65BD9;
    --morado: #553B8C;
    --turquesa: #7ED0D9;
    --verde-lima: #BCD952;
    --negro: #0D0D0D;

    --blanco: #FFFFFF;

    --gris-claro: #EAEAEA;
    --gris-muy-claro: #F7F7F7;

    --tinta: #241C26;
}


/* =========================================================
   ENCABEZADO PRINCIPAL
   ========================================================= */

#header {
    background: var(--blanco);

    min-height: 92px;

    padding: 16px 28px;

    display: flex;
    align-items: center;

    border-bottom: 2px solid var(--morado);

    color: var(--tinta);
}


/* =========================================================
   MARCA
   ========================================================= */

#branding {
    display: flex;
    align-items: center;

    min-width: 0;
}


/* Logo + textos */
#branding .admin-marca {
    display: flex;
    align-items: center;

    gap: 16px;
}


/* Logo */
#branding .admin-logo {
    width: 72px !important;
    height: 72px !important;

    max-width: 72px !important;
    max-height: 72px !important;

    object-fit: contain;

    display: block;

    flex-shrink: 0;
}


/* Nombre principal */
#branding .admin-marca-texto strong {
    display: block;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 700;

    color: var(--morado-oscuro);
}


/* Texto Administración */
#branding .admin-marca-texto small {
    display: block;

    margin-top: 5px;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: var(--morado);
}


/* =========================================================
   USUARIO / SESIÓN
   ========================================================= */

#user-tools {
    margin-left: auto;

    font-size: 14px;

    color: var(--negro);
}


/* Enlaces del usuario */
#user-tools a {
    color: var(--morado-oscuro);

    font-weight: 700;

    text-decoration: none;
}


/* Hover de enlaces */
#user-tools a:hover {
    color: var(--violeta);

    text-decoration: underline;
}


/* =========================================================
   TÍTULOS DE MÓDULOS
   ========================================================= */

.module h2,
.module caption,
.inline-group h2 {
    background: var(--morado-oscuro);

    color: var(--blanco);

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.7px;

    text-transform: uppercase;

    padding: 11px 14px;
}


/* =========================================================
   MÓDULOS
   ========================================================= */

.module {
    background: var(--blanco);

    border: 1px solid var(--gris-claro);

    border-radius: 8px;

    overflow: hidden;
}


/* =========================================================
   ENLACES INTERNOS
   ========================================================= */

.module a {
    color: var(--morado);

    font-size: 15px;

    font-weight: 600;

    text-decoration: none;
}


.module a:hover {
    color: var(--violeta);
}


/* =========================================================
   FILAS
   ========================================================= */

tr:nth-child(even) {
    background: var(--gris-muy-claro);
}


tr:hover {
    background: #F3ECF8;
}


/* =========================================================
   BOTONES
   ========================================================= */

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
    background: var(--morado);

    color: var(--blanco);

    border: none;

    border-radius: 18px;

    padding: 8px 16px;

    font-weight: 700;
}


.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.submit-row input:hover,
a.button:hover {
    background: var(--violeta);
}


/* =========================================================
   BOTONES DESTACADOS
   ========================================================= */

.button.default,
input[type="submit"].default {
    background: var(--verde-lima);

    color: var(--negro);
}


/* =========================================================
   DETALLES / ACENTOS
   ========================================================= */

.addlink {
    color: var(--verde-lima) !important;
}


.changelink {
    color: var(--morado) !important;
}


.deletelink {
    color: var(--morado-oscuro) !important;
}


/* =========================================================
   TÍTULO PRINCIPAL
   ========================================================= */

#content h1 {
    color: var(--morado-oscuro);

    font-size: 28px;

    font-weight: 600;

    margin-bottom: 24px;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

input,
textarea,
select {
    border: 1px solid #D8D0DC;

    border-radius: 7px;

    background: var(--blanco);

    color: var(--negro);
}


input:focus,
textarea:focus,
select:focus {
    border-color: var(--violeta);

    outline: none;

    box-shadow: 0 0 0 2px #EEDCF8;
}


/* =========================================================
   MIGAS DE PAN
   ========================================================= */

div.breadcrumbs {
    background: #F4EFF7;

    color: var(--morado-oscuro);
}


div.breadcrumbs a {
    color: var(--morado);
}

/* =========================================================
   ENLACES DEL USUARIO EN EL ENCABEZADO
   ========================================================= */

#user-tools {
    color: #0D0D0D !important;
}


/* Enlaces como:
   VER EL SITIO
   CAMBIAR CONTRASEÑA
   CERRAR SESIÓN
*/
#user-tools a,
#user-tools a:link,
#user-tools a:visited {
    color: #0D0D0D !important;

    font-weight: 700;

    text-decoration: none;
}


/* Cuando pasas el mouse */
#user-tools a:hover {
    color: #553B8C !important;

    text-decoration: underline;
}


/* También fuerza el color de los separadores "/" */
#user-tools,
#user-tools strong {
    color: #0D0D0D !important;
}

/* =========================================================
   BOTÓN CERRAR SESIÓN DEL DJANGO ADMIN
   ========================================================= */

/* Formulario que contiene el botón de cerrar sesión */
#user-tools #logout-form {
    display: inline;
}


/* Botón "Cerrar sesión" */
#user-tools #logout-form button {
    background: transparent !important;

    border: none !important;

    padding: 0 !important;
    margin: 0 !important;

    color: #0D0D0D !important;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    text-decoration: none;
}


/* Al pasar el mouse */
#user-tools #logout-form button:hover {
    color: #553B8C !important;

    text-decoration: underline;
}