/* التنسيق العام للنظام */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* تنسيق للغة العربية */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* تنسيق الخلفية */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.content-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 2rem;
}

/* تنسيق الأزرار */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 12px 24px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-primary.active {
    background: var(--primary-color);
    color: white;
}

/* تنسيق النماذج */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* تنسيق البطاقات */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 20px;
}

/* تنسيق الجداول */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

/* تنسيق التنبيهات */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

/* تنسيق الشريط الجانبي */
.sidebar {
    background: #2c3e50;
    min-height: 100vh;
    color: white;
}

.sidebar .nav-link {
    color: #bdc3c7;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* تنسيق المحتوى الرئيسي */
.main-content {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

/* تنسيق الإحصائيات */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stats-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #ecf0f1;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.icon-large {
    font-size: 4rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .content-center {
        padding: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* تنسيقات الطباعة المحسنة */
@media print {
    /* إخفاء العناصر غير المطلوبة للطباعة */
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    /* تنسيق الصفحة لـ A4 */
    @page {
        size: A4;
        margin: 1cm;
    }
    
    body {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: white !important;
    }
    
    /* تنسيق السيرة الذاتية للطباعة */
    .cv-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11px !important;
    }
    
    /* تقليل المسافات والهوامش */
    .mb-5, .mb-4, .mb-3, .mb-2 {
        margin-bottom: 8px !important;
    }
    
    .pb-4, .pb-3, .pb-2 {
        padding-bottom: 6px !important;
    }
    
    .p-3 {
        padding: 6px !important;
    }
    
    /* تنسيق العنوان الرئيسي */
    h1 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
    }
    
    /* تنسيق معلومات الاتصال */
    .text-muted {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    
    /* تنسيق عناوين الأقسام */
    .cv-section-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #ccc !important;
    }
    
    /* تنسيق العناصر */
    .cv-item {
        margin-bottom: 6px !important;
        padding: 4px !important;
        border-radius: 3px !important;
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }
    
    /* تنسيق العناوين الفرعية */
    h5, h6 {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }
    
    /* تنسيق النص */
    div {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    /* تنسيق الشارات */
    .badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    /* تنسيق المهارات واللغات */
    .row {
        margin: 0 !important;
    }
    
    .col-md-6 {
        padding: 2px !important;
    }
    
    .cv-skill-bar {
        height: 4px !important;
    }
    
    /* إزالة الخلفيات والظلال */
    * {
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* تنسيق الروابط */
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    /* تنسيق الأيقونات */
    .fas, .fab {
        font-size: 10px !important;
    }
    
    /* تنسيق الجداول */
    .table {
        font-size: 10px !important;
        border: 1px solid #ccc !important;
    }
    
    .table th,
    .table td {
        padding: 4px !important;
        border: 1px solid #ccc !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
} 