/**
 * ملف الشريط الجانبي المخصص
 * Custom Sidebar File
 * نظام تتبع الشحنات - Shipment Tracking System
 */

/* خلفية الشريط الجانبي مع صورة */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(0, 86, 179, 0.8) 100%), 
                url('../images/bg1.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* طبقة الخلفية الأولى */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.7) 0%, rgba(0, 86, 179, 0.7) 100%);
    z-index: 1;
}

/* طبقة الخلفية الثانية */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg1.jpg') center/cover no-repeat;
    z-index: 0;
    opacity: 0.3;
}

/* محتوى الشريط الجانبي */
.sidebar > * {
    position: relative;
    z-index: 2;
}


/* تحسينات العناوين في الشريط الجانبي */
.sidebar h1 {
    font-family: 'Cairo', 'Amiri', serif;
    font-weight: 800;
    font-size: 3rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    color: white;
    margin-bottom: 1rem;
}

.sidebar h2 {
    font-family: 'Cairo', 'Amiri', serif;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar h5 {
    font-family: 'Cairo', 'Amiri', serif;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar .lead {
    font-family: 'Cairo', 'Amiri', serif;
    font-weight: 400;
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.5;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar .important-text {
    font-family: 'Cairo', 'Amiri', serif;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* تحسينات القوائم في الشريط الجانبي */
.sidebar .list-unstyled li {
    padding: 0.5rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.sidebar .list-unstyled li:hover {
    transform: translateX(-5px);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar .list-unstyled li i {
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.sidebar .list-unstyled li:hover i {
    color: white;
    transform: scale(1.1);
}

/* تحسينات الأزرار في الشريط الجانبي */
.sidebar .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sidebar .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* تحسينات الأيقونات في الشريط الجانبي */
.sidebar .fas,
.sidebar .far,
.sidebar .fab {
    transition: all 0.3s ease;
}

.sidebar .fas:hover,
.sidebar .far:hover,
.sidebar .fab:hover {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.8);
}

/* تأثيرات إضافية للشريط الجانبي */
.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    z-index: 1;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 2rem 0;
        background-attachment: scroll;
    }
    
    
    .sidebar h1 {
        font-size: 2.5rem;
    }
    
    .sidebar .lead {
        font-size: 1rem;
    }
}

/* تحسينات للطباعة */
@media print {
    .sidebar {
        background: white !important;
    }
    
    
    .sidebar h1,
    .sidebar h2,
    .sidebar h5,
    .sidebar .lead,
    .sidebar .important-text {
        color: black !important;
        text-shadow: none !important;
    }
}

/* تأثيرات متقدمة للشريط الجانبي */
.sidebar-glow {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.sidebar-glow:hover {
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
}
