/* ============================================================
   Dashboard - لوحة الشركة
   ============================================================ */

/* ---- System Identity (Logo + Name) ---- */
.dash-identity-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-color: #d4dcf9 !important;
}

.dash-system-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(37,99,235,.25));
}

.dash-system-name {
    font-family: "Tajawal-Bold", sans-serif;
    font-size: 17px;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: .3px;
}

.dash-system-tagline {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 0;
}

/* ---- Welcome Banner ---- */
.dash-welcome-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    border: none !important;
    position: relative;
    overflow: hidden;
}

.dash-welcome-bg-icon {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 130px;
    color: rgba(255, 255, 255, .06);
    pointer-events: none;
    line-height: 1;
}

/* ---- Stat Cards ---- */
.dash-stat-card {
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.dash-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .11) !important;
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.dash-stat-label {
    font-size: 11px;
    margin-bottom: 4px;
}

.dash-stat-number {
    font-size: 1.45rem;
    line-height: 1;
}

/* No-link stat card (total) */
.dash-stat-plain {
    cursor: default;
}

.dash-stat-plain:hover {
    transform: none;
    box-shadow: none !important;
}

/* ---- Stats unified row ---- */
.dash-stats-unified .col-4 {
    /* equal height guaranteed by shared card */
}

/* ---- Inline SVG Donut Chart ---- */
.dash-svg-donut {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.dash-svg-donut svg {
    display: block;
}

.dash-svg-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.dash-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---- Quick Access Links ---- */
.dash-quick-link {
    transition: transform .16s ease, box-shadow .16s ease;
    border-radius: 10px;
}

.dash-quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .09);
}

/* ---- Divider label ---- */
.dash-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin-bottom: 8px;
    padding-right: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .dash-system-logo {
        width: 34px;
        height: 34px;
    }

    .dash-system-name {
        font-size: 15px;
    }

    .dash-welcome-bg-icon {
        font-size: 80px;
    }

    .dash-stat-icon {
        width: 34px;
        height: 34px;
    }

    .dash-stat-label {
        font-size: 10px !important;
    }

    .dash-stat-number {
        font-size: 1.15rem !important;
    }
}

@media (max-width: 400px) {
    .dash-stat-number {
        font-size: 1rem !important;
    }
}
