/* Hadjer Solution - Main Stylesheet */
:root {
    --primary-color: #39D2B4;
    --secondary-color: #2a9d8f;
    --dark-color: #264653;
    --light-color: #f8f9fa;
    --danger-color: #e76f51;
    --warning-color: #f4a261;
    --success-color: #2a9d8f;
    --info-color: #457b9d;
}

/* General Styles */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* Navbar Styles */
.hadjer-navbar {
    background-color: var(--dark-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hadjer-navbar .navbar-brand {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.hadjer-navbar .navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.hadjer-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.hadjer-navbar .nav-link:hover,
.hadjer-navbar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.hadjer-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: white;
    transition: transform 0.3s ease;
    border: none;
}

.hadjer-card:hover {
    transform: translateY(-5px);
}

.hadjer-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: 1rem;
    border: none;
}

.hadjer-card .card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-rounded {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

/* Table Styles */
.hadjer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
}

.hadjer-table th,
.hadjer-table td {
    padding: 1rem;
    vertical-align: middle;
}

.hadjer-table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border: none;
}

.hadjer-table tbody tr {
    background-color: white;
    transition: all 0.3s ease;
}

.hadjer-table tbody tr:hover {
    background-color: rgba(57, 210, 180, 0.1);
}

.hadjer-table tbody td {
    border-bottom: 1px solid #e9ecef;
}

/* Form Styles */
.hadjer-form .form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.hadjer-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(57, 210, 180, 0.25);
}

.hadjer-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Map Container */
.map-container {
    height: 50vh;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#map {
    height: 100%;
    width: 100%;
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.ltr::after {
    left: 0;
    right: auto;
}

/* Footer */
.hadjer-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.hadjer-footer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hadjer-card {
        margin-bottom: 1.5rem;
    }
    
    .map-container {
        height: 40vh;
    }
    
    .hadjer-table {
        display: block;
        overflow-x: auto;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
