/* =========================
   ADMIN PARC CANÍ
   ========================= */

:root {
    --verd-fosc: #8F4F4A;
    --verd: #C2736D;
    --verd-clar: #F8EFEE;
    --fons: #f5f7f6;
    --text: #111827;
    --gris: #e5e7eb;
    --ombra: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* GENERAL */

body {
    background: var(--fons) !important;
    color: var(--text);
}

#container {
    background: var(--fons) !important;
}

/* HEADER */

#header {
    background: linear-gradient(90deg, var(--verd-fosc), #A45E58) !important;
    color: white !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    padding: 14px 36px;
}

#site-name a,
#branding h1,
#branding h1 a {
    color: white !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
}

#user-tools,
#user-tools a {
    color: rgba(255, 255, 255, 0.9) !important;
}

#user-tools a:hover {
    color: white !important;
}

/* CONTINGUT PRINCIPAL */

#content {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 32px 24px !important;
    box-sizing: border-box;
}

#content h1,
.admin-title {
    color: #7D4541 !important;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 28px;
}

/* LAYOUT DASHBOARD */

.dashboard #content-main {
    width: 72% !important;
    float: left;
    box-sizing: border-box;
}

.dashboard #content-related {
    width: 25% !important;
    float: right;
    margin-left: 3% !important;
    box-sizing: border-box;
}

/* ACCIONS RÀPIDES */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
    max-width: 100%;
}

.quick-card {
    background: white !important;
    border: 1px solid var(--gris);
    border-radius: 18px;
    min-height: 120px;
    padding: 22px;
    color: #7D4541 !important;
    text-decoration: none !important;
    box-shadow: var(--ombra);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    transition: 0.2s ease;
}

.quick-card span {
    font-size: 28px;
}

.quick-card strong {
    font-size: 17px;
    line-height: 1.25;
}

.quick-card:hover {
    transform: translateY(-3px);
    background: var(--verd-clar) !important;
    border-color: var(--verd);
}

/* MÒDULS / TARGETES */

.module,
.app-auth,
.app-accessos,
.app-incidencies,
.app-reserves,
.app-usuaris {
    background: white !important;
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: var(--ombra);
    margin-bottom: 28px !important;
}

.module h2,
.module caption,
.inline-group h2 {
    background: var(--verd) !important;
    color: white !important;
    padding: 16px 20px !important;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.module h2 a,
.module caption a {
    color: white !important;
}

/* TAULES */

.dashboard .module table {
    width: 100%;
    background: white !important;
}

.dashboard .module table td,
.dashboard .module table th {
    padding: 15px 18px !important;
    border-color: #edf2f0 !important;
}

.dashboard .module table tr:nth-child(even) {
    background: #fafafa;
}

/* LINKS */

a {
    color: var(--verd-fosc);
}

a:hover {
    color: #A45E58;
}

/* BOTONS ADMIN */

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
    background: var(--verd) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-weight: 700;
}

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

/* ACCIONS RECENTS */

#recent-actions-module {
    background: white !important;
    border-radius: 18px !important;
    overflow: hidden;
}

#recent-actions-module h2 {
    background: #B96A64 !important;
    color: white !important;
    padding: 16px 20px !important;
    font-weight: 800;
}

#recent-actions-module h3 {
    color: var(--text);
    padding: 16px 20px 6px;
}

#recent-actions-module ul {
    padding: 0 20px 20px;
}

/* SIDEBAR */

#nav-sidebar {
    background: #FAF3F2 !important;
}

#nav-sidebar .current-model {
    background: #F4E3E1 !important;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .dashboard #content-main,
    .dashboard #content-related {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }

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

@media (max-width: 650px) {
    #content {
        padding: 24px 18px !important;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    #site-name a,
    #branding h1,
    #branding h1 a {
        font-size: 24px !important;
    }
}

.dashboard .module table th,
.dashboard .module table td {
    white-space: nowrap !important;
}

.dashboard .module table th:first-child,
.dashboard .module table td:first-child {
    width: 55% !important;
}

.dashboard .module table th:nth-child(2),
.dashboard .module table td:nth-child(2),
.dashboard .module table th:nth-child(3),
.dashboard .module table td:nth-child(3) {
    width: 20% !important;
}

.quick-actions {
    max-width: 100% !important;
}

* {
    box-sizing: border-box;
}

.dashboard .module table {
    table-layout: auto !important;
}

.dashboard .module table td {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 1000px) {
    .dashboard #content-main,
    .dashboard #content-related {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }
}

/* HERO CARD */

.hero-card {
    background: linear-gradient(135deg, #8F4F4A, #C2736D);
    border-radius: 28px;
    padding: 34px;
    color: white !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 30px 0 40px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.hero-card:hover {
    transform: translateY(-2px);
}

.hero-icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    background-image: url("/static/admin/img/icon-addlink.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 34px;
    flex-shrink: 0;
}

.hero-card h2 {
    color: white !important;
    font-size: 32px;
    margin-bottom: 8px;
}

.hero-card p {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    line-height: 1.6;
}

/* TITOL SECCIO */

.section-title {
    color: #8F4F4A;
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 800;
}

/* GRID */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}

/* CARDS */

.dashboard-card {
    background: white;
    border-radius: 22px;
    padding: 28px;
    text-decoration: none !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transition: 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    background: #F8EFEE;
}

.dashboard-card h3 {
    color: #8F4F4A;
    font-size: 22px;
}

/* ICONES */

.dashboard-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background-color: #F4E3E1;
    margin-bottom: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

.users-icon {
    background-image: url("/static/admin/img/icon-changelink.svg");
}

.reserves-icon {
    background-image: url("/static/admin/img/icon-calendar.svg");
}

.accessos-icon {
    background-image: url("/static/admin/img/icon-viewlink.svg");
}

.incidencies-icon {
    background-image: url("/static/admin/img/icon-alert.svg");
}

.qr-icon {
    background-image: url("/static/admin/img/search.svg");
}

.config-icon {
    background-image: url("/static/admin/img/icon-changelink.svg");
}

.closed-icon {
    background-image: url("/static/admin/img/icon-deletelink.svg");
}

