/* --- إعدادات وتنسيقات النظام العامة (شبكة الحسيني) --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
.content-wrap {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}
.navbar-custom {
    background: #0f172a !important;
    border-bottom: 2px solid #1e293b;
}
.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-logo-nav {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}
.brand-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}
.btn-logout-custom {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    border: none;
    padding: 6px 16px;
    border-radius: 50rem;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.btn-logout-custom:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}
.nav-link-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.nav-link-custom:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: #ffc107;
    color: #ffc107 !important;
}
.nav-link-custom i {
    color: #ffc107;
    margin-left: 5px;
}
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* --- تصميم البطاقات المربعة المحدودة الحواف في لوحة التحكم --- */
.dash-card-square {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    height: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 24px 18px;
}
.dash-card-square:hover {
    border-color: #1e3c72;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.08);
}
.dash-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin-bottom: 10px;
}
.btn-dash-action-sq {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 15px;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    color: #ffffff;
}
.btn-dash-action-sq:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* تدرجات ألوان مميزة لكل بطاقة مربعة */
.card-pos .dash-icon-circle, .card-pos .btn-dash-action-sq { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.card-invoices .dash-icon-circle, .card-invoices .btn-dash-action-sq { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.card-inventory .dash-icon-circle, .card-inventory .btn-dash-action-sq { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.card-expenses .dash-icon-circle, .card-expenses .btn-dash-action-sq { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.card-reports .dash-icon-circle, .card-reports .btn-dash-action-sq { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.card-employees .dash-icon-circle, .card-employees .btn-dash-action-sq { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.card-settings .dash-icon-circle, .card-settings .btn-dash-action-sq { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); }

footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 1px solid #1e293b;
}