:root {
    --primary: #016CA5;    /* Azul principal */
    --secondary: #00577f;  /* Azul más oscuro */
}

/* ==========================
   ENCABEZADO DEL ADMIN
   ========================== */

#header {
    background-color: var(--primary) !important;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

#header h1,
#header h1 a:link,
#header h1 a:visited {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ==========================
   BOTONES PRINCIPALES
   ========================== */

.button,
input[type=submit],
.submit-row input {
    background-color: var(--primary) !important;
    border-color: var(--secondary) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Ocultar “Guardar y añadir otro” y “Guardar y continuar” */
.submit-row input[name="_addanother"],
.submit-row input[name="_continue"] {
    display: none !important;
}

/* ==========================
   BOTÓN GUARDAR
   ========================== */

.submit-row input[name="_save"] {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    text-transform: none !important;
}

/* ==========================
   BOTÓN CANCELAR
   ========================== */

.cancel-button {
    background-color: #6c757d !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    margin-left: 10px !important;
}

.cancel-button:hover {
    background-color: #5a6268 !important;
}

/* ==========================
   FILA DE BOTONES
   ========================== */

.submit-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Mover ELIMINAR a la derecha */
.submit-row .deletelink {
    margin-left: auto !important;
}

/* ==========================
   LOGIN
   ========================== */

.login #content form input[type="submit"] {
    background-color: var(--primary) !important;
    border-color: var(--secondary) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
