/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --body-bg-rgb: 246, 246, 251;
    --primary-rgb: 39, 174, 96;
    --secondary-rgb: 244, 110, 244;
}

/* ========================================
   THEME CONFIGURATIONS
   ======================================== */

[data-header-styles="light"] {
    --header-bg: #27AE60 !important;
    --header-border-color: #27AE60 !important;
    --header-prime-color: #ffffff !important;
}

[data-menu-styles="light"] {
    --menu-bg: #27AE60 !important;
    --menu-prime-color: #ffffff !important;
    --menu-border-color: #27AE60 !important;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

.app-sidebar .side-menu__item.active {
    background-color: rgb(187 255 216 / 15%) !important;
}

.app-sidebar .side-menu__item.active,
.app-sidebar .slide-menu.child1 .side-menu__item:hover,
.app-sidebar .side-menu__item:hover,
.app-sidebar .side-menu__item:hover .side-menu__icon,
.app-sidebar .side-menu__item:hover .side-menu__label,
.app-sidebar .side-menu__item:hover .side-menu__angle,
.app-sidebar .side-menu__item.active .side-menu__label,
.app-sidebar .side-menu__item.active .side-menu__angle,
[data-menu-styles="light"] .app-sidebar .side-menu__item.active .side-menu__icon {
    color: #26eaff !important;
}

.animated-arrow span,
.animated-arrow span:before,
.animated-arrow span:after {
    background-color: #ffffff !important;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.app-header {
    border-radius: 0 0 0 30px !important;
}

.main-header-dropdown.dropdown-menu.dropdown-menu-end.show {
    left: -10px !important;
    width: 250px !important;
}

.main-header-container .header-link-icon {
    width: fit-content !important;
    height: 1.7rem !important;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-check-input {
    width: 1.2rem !important;
    height: 1.2rem !important;
    margin: -2px 5px !important;
}

.form-select {
    line-height: 1.7 !important;
}

input[type="color"] {
    height: 37px !important;
}

/* ========================================
   DROPZONE / FILE UPLOAD
   ======================================== */

.dropzone {
    min-height: 150px;
    border: 2px dashed rgba(0, 0, 0, .3) !important;
    background: #fff !important;
    padding: 50px 20px !important;
    margin: 20px 0;
    text-align: center;
}

.img-dropzone {
    width: 150px;
    filter: opacity(0.5);
}

.card-img-top-file {
    height: 150px !important;
}

.file-item-img {
    height: 134px;
    object-fit: contain;
}

/* ========================================
   SELECT2 STYLES
   ======================================== */

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    height: 36px !important;
}

[dir="rtl"] .select2-container .select2-search--inline .select2-search__field {
    font-family: inherit;
}

.select-notes {
    height: 43px !important;
}

/* ========================================
   IMAGE & BOX STYLES
   ======================================== */

.box-image {
    max-height: 180px;
    height: 170px;
    object-fit: contain;
}

.box-image img {
    height: 170px;
    object-fit: contain;
}

.box-radio {
    border: 1px solid #dee7f1;
    line-height: 18px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    height: 36px;
}

.relative-box-custom {
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 30px !important;
    border-radius: 5px;
}

/* ========================================
   DATATABLE STYLES
   ======================================== */

.dataTables_filter input {
    width: 300px !important;
    border: 1px solid #aaa !important;
    border-radius: 5px !important;
    padding: 10px !important;
    margin-bottom: 15px !important;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-justify, .text-justify p {
    text-align: justify !important;
}

.text_nowrap {
    text-wrap-mode: nowrap !important;
}

/* ========================================
   CALENDAR STYLES
   ======================================== */

#calendar {
    max-width: 100% !important;
}

.fc-h-event .fc-event-main,
.fc-list-table .fc-list-event {
    color: #000 !important;
    font-size: 12px !important;
}

.fc-h-event {
    background-color: #7961f55e !important;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-secondary {
    background-color: rgb(187 187 187) !important;
    border-color: rgb(189 189 189) !important;
    color: #fff !important;
}

.filter-btn {
    background: rgb(0 0 0);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgb(147 147 147);
}

.filter-btn.active {
    background: #27ae60;
    color: #ffffff;
    font-weight: bold;
}

/* ========================================
   REQUEST ACTIVITIES
   ======================================== */

.request-activities-schedule-status {
    top: -13px;
    left: 5px;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-body p span {
    font-weight: bold !important;
    margin: 0 3px !important;
}

/* ========================================
   BLOG CONTENT
   ======================================== */

.blog-content p {
    line-height: 32px !important;
}

/* ========================================
   ADMIN DASHBOARD - NURSE REQUEST
   ======================================== */

/* Stats Header */
.stats-header {
    background: #fff;
    color: #323232;
    padding: 15px 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card {
    background: rgb(243 243 243);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgb(227 227 227);
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    margin: 5px 0;
}

.stat-card .label {
    font-size: 14px;
    opacity: 0.9;
}

/* Dashboard Container */
.dashboard-container {
    margin: 15px 0;
}

/* Map Section */
.map-section {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.map-header {
    background: #ffffff;
    color: #484848;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #484848;
}

.map-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.map-info span {
    background: rgb(173 255 207);
    padding: 5px 15px;
    border-radius: 5px;
}

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

/* Table Section */
.table-section {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table-header {
    background: #ffffff;
    color: #484848;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #484848;
}

.status-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.table-container {
    overflow-x: auto;
    max-height: 600px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.accepted {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.on_the_way {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.arrived {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.in_progress {
    background: #cfe2ff;
    color: #084298;
}

.status-badge.completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #842029;
}

/* Empty & Loading States */
.no-data {
    text-align: center;
    padding: 50px;
    color: #6c757d;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.loading i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .main-header-dropdown.dropdown-menu.dropdown-menu-end.show {
        width: 100% !important;
        left: 0 !important;
    }

    .stats-container {
        flex-direction: column;
    }

    .map-header, .table-header {
        flex-direction: column;
        gap: 10px;
    }

    #map {
        height: 350px;
    }

    .table-container {
        font-size: 12px;
    }
}
