/* assets/css/style.css */
:root {
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fc;
}

body {
    background: var(--light-bg);
    font-family: 'Tahoma', Arial, sans-serif;
    color: #333;
}

/* القائمة الجانبية */
.sidebar {
    min-height: 100vh;
    background: var(--dark-color);
    color: white;
    padding: 20px 0;
}

.sidebar a {
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 10px;
    transition: all 0.3s;
}

.sidebar a:hover {
    background: #34495e;
    color: white;
    padding-right: 30px;
}

.sidebar a.active {
    background: var(--primary-color);
    color: white;
}

.sidebar a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* بطاقات الإحصائيات */
.card-stats {
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: default;
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-primary-soft { background: #e8f0fe; color: var(--primary-color); }
.bg-success-soft { background: #e2f4ea; color: var(--success-color); }
.bg-warning-soft { background: #fef3e2; color: var(--warning-color); }
.bg-danger-soft { background: #fce8e6; color: var(--danger-color); }

/* نموذج الشيك */
.cheque-preview {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

/* للطباعة */
@media print {
    .navbar, .btn, .no-print, .offcanvas, .sidebar, #sidebarMenu {
        display: none !important;
    }
    .cheque-preview, .cheque-container {
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }
    body { background: white !important; }
    .container-fluid { padding: 0 !important; }
    main { margin: 0 !important; width: 100% !important; }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 10px 0;
    }
    .sidebar a {
        padding: 10px 15px;
        margin: 3px 5px;
        font-size: 14px;
    }
    .offcanvas {
        width: 250px !important;
    }
}

/* تنسيقات الحقول في نموذج الشيك */
.cheque-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

/* معاينة القالب في واجهة التخصيص */
.template-preview {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: white;
    margin-top: 15px;
    max-height: 500px;
    overflow: auto;
}

/* خطوط Google */
.font-cairo { font-family: 'Cairo', sans-serif; }
.font-amiri { font-family: 'Amiri', serif; }
.font-noto-naskh { font-family: 'Noto Naskh Arabic', serif; }
.font-almarai { font-family: 'Almarai', sans-serif; }
.font-tajawal { font-family: 'Tajawal', sans-serif; }
.font-reem-kufi { font-family: 'Reem Kufi', sans-serif; }
.font-lateef { font-family: 'Lateef', serif; }