/* 
 * File Name: style.css 
 * Directory: /assets/css/
 */

/* =========================================
   1. التنسيقات العامة والخطوط
   ========================================= */
body, input, select, textarea, button, .form-control, .form-select, table {
    font-family: 'Cairo', sans-serif !important;
}

/* تجاوز ألوان Bootstrap الافتراضية بألوان النظام (السوبر أدمن) */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important; 
    color: #fff !important;
}
.btn-primary:hover { 
    background-color: var(--primary-hover) !important; 
    border-color: var(--primary-hover) !important; 
}
.border-primary { border-color: var(--primary-color) !important; }

/* =========================================
   2. تنسيقات القائمة الجانبية (Sidebar)
   ========================================= */
.sidebar-custom {
    background-color: var(--secondary-color, #1e293b);
    min-height: 100vh;
    color: #cbd5e1;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}
.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    background-color: rgba(0,0,0,0.2);
}
.sidebar-brand img {
    max-height: 70px;
    max-width: 100%;
    margin-bottom: 10px;
}
.sidebar-brand h5 {
    color: #f8fafc;
    margin: 0;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.sidebar-menu {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}
.sidebar-category {
    padding: 15px 20px 5px 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    font-weight: 600;
}
.sidebar-link i {
    margin-left: 12px;
    font-size: 1.1rem;
    color: #94a3b8;
    transition: color 0.2s;
}
.sidebar-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: #ffffff;
}
.sidebar-link:hover i {
    color: #ffffff;
}
.sidebar-link.active {
    background-color: var(--primary-color, #2563eb);
    color: #ffffff;
    border-right: 4px solid rgba(255,255,255,0.5);
}
.sidebar-link.active i {
    color: #ffffff;
}

/* =========================================
   3. إعدادات الهوية (Settings & Cards)
   ========================================= */
.card-custom {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.logo-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px dashed var(--secondary-color, #cbd5e1);
    padding: 10px;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.color-picker-wrapper {
    height: 50px;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}
.color-picker-wrapper input[type="color"] {
    width: 150%;
    height: 150%;
    margin: -25%;
    cursor: pointer;
}

/* =========================================
   4. منشئ النماذج (Form Builder)
   ========================================= */
.field-row {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.field-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.handle {
    cursor: grab;
    color: #94a3b8;
    font-size: 1.2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.handle:active {
    cursor: grabbing;
}