:root {
    --primary: #08256e;   /* Color principal */
    --secondary: #0B3D92; /* Color 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: white !important;
    font-weight: 500 !important;
}

/* Ocultar botones "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;
}

/* Botón 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;
}



    .dashboard-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
        margin-bottom: 24px;
    }
    .dashboard-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 16px 18px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }
    .dashboard-card h3 {
        margin: 0 0 8px 0;
        font-size: 16px;
    }
    .dashboard-card .big-number {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    .dashboard-card a.button-link {
        display: inline-block;
        margin-top: 6px;
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid #417690;
        color: #fff;
        background-color: #417690;
        text-decoration: none;
        font-size: 12px;
    }
    .dashboard-card a.button-link:hover {
        background-color: #31566a;
    }

    .top-softwares-table {
        width: 100%;
        border-collapse: collapse;
    }
    .top-softwares-table th,
    .top-softwares-table td {
        padding: 6px 8px;
        border-bottom: 1px solid #eee;
        text-align: left;
        font-size: 13px;
    }