/* Persian RTL Styles */
body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Navigation styles */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1) !important;
    font-weight: bold;
}

.navbar-brand {
    font-weight: bold;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Button styles */
.btn {
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

/* Table styles */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Badge styles */
.badge {
    font-size: 0.75em;
    padding: 0.375rem 0.75rem;
}

/* Custom card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Button styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Table styles */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Badge styles */
.badge {
    font-size: 0.75em;
    padding: 0.375rem 0.5rem;
}

/* Navbar styles */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Custom spacing */
.me-2 {
    margin-left: 0.5rem !important;
}

.me-3 {
    margin-left: 1rem !important;
}

.ms-auto {
    margin-right: auto !important;
}

/* Persian calendar specific styles */
.persian-date {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}

/* Attendance status indicators */
.attendance-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.attendance-status.present {
    background-color: #28a745;
}

.attendance-status.absent {
    background-color: #dc3545;
}

.attendance-status.partial {
    background-color: #ffc107;
}

/* Leave request status colors */
.leave-status-pending {
    background-color: #ffc107;
    color: #000;
}

.leave-status-approved {
    background-color: #28a745;
    color: #fff;
}

.leave-status-rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Persian number styles */
.persian-number {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
