/* Main Styles for سفراء النور Application */

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
}

html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1rem;
    text-align: center;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .75rem 1rem;
}

.sidebar .nav-link.active {
    color: #0d6efd;
}

.sidebar .nav-link:hover {
    color: #0a58ca;
}

.sidebar-divider {
    margin: 0 1rem 1rem;
}

/* User Info in Sidebar */
.user-info-sidebar {
    padding: 1rem;
    margin: 0 1rem 1rem;
    border-radius: 0.25rem;
    background-color: #f0f2f5;
    font-size: 0.9rem;
}

.user-info-sidebar p {
    margin-bottom: 0.5rem;
}

.user-info-sidebar strong {
    color: #0d6efd;
}

/* Submit Report Button */
.submit-report-btn {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.submit-report-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
main {
    padding-top: 1.5rem;
}

/* Card Styles */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6f0;
}

/* Form Styles */
.form-label {
    font-weight: 500;
}

/* Button Styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a53be;
}

/* Table Styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Login Page Styles */
.login-container {
    max-width: 450px;
    margin: 5rem auto;
}

.login-card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-card .card-header {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.login-card .card-body {
    padding: 2rem;
}

/* Registration Page Styles */
.register-container {
    max-width: 800px;
    margin: 3rem auto;
}

/* Dashboard Stats */
.stat-card {
    border-left: 4px solid #0d6efd;
    border-radius: 0.25rem;
}

.stat-card.primary {
    border-left-color: #0d6efd;
}

.stat-card.success {
    border-left-color: #198754;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.danger {
    border-left-color: #dc3545;
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: #dddfeb;
}

/* RTL Specific Adjustments */
html[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-sm-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    .sidebar-sticky {
        height: auto;
    }
    
    main {
        margin-top: 1rem;
    }
}

/* Image Gallery */
.img-thumbnail {
    transition: transform 0.3s ease;
}

.img-thumbnail:hover {
    transform: scale(1.05);
}

/* Rating Colors */
.rating-excellent {
    color: #198754;
}

.rating-good {
    color: #0d6efd;
}

.rating-average {
    color: #6c757d;
}

.rating-poor {
    color: #ffc107;
}

.rating-very-poor {
    color: #dc3545;
}

/* Custom Fonts for Arabic */
@font-face {
    font-family: 'Tajawal';
    src: url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
}

body[lang="ar"] {
    font-family: 'Tajawal', sans-serif;
}

/* أنماط عامة */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* أنماط الشريط الجانبي */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #f8f9fa;
}

.sidebar-brand {
    padding: 1rem;
    text-align: center;
}

.sidebar-brand img {
    max-width: 80px;
    margin-bottom: 10px;
}

.sidebar-divider {
    margin: 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.nav-link {
    font-weight: 500;
    color: #333;
}

.nav-link.active {
    color: #0d6efd;
}

.nav-link:hover {
    color: #0a58ca;
}

/* أنماط المحتوى الرئيسي */
main {
    padding-top: 1.5rem;
}

/* أنماط البطاقات */
.card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e3e6f0;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-primary {
    color: #0d6efd !important;
}

/* أنماط زر رفع التقرير */
.submit-report-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* أنماط معلومات المستخدم في الشريط الجانبي */
.user-info-sidebar {
    font-size: 0.9rem;
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        margin-right: 0 !important;
    }
}