/* Check-in Libya Dashboard Styles */

/* Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-progress circle:last-child {
    animation: spin 1s linear infinite;
    transform-origin: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Sidebar Transitions */
.sidebar-transition {
    transition: width 0.3s ease-in-out;
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Table Row Hover */
.table-row-hover:hover {
    background-color: #f9fafb;
}

/* Button Transitions */
.btn-transition {
    transition: all 0.2s ease;
}

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Input Focus */
.input-focus:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Badge Styles */
.badge-success { background-color: #dcfce7; color: #166534; }
.badge-danger { background-color: #fee2e2; color: #991b1b; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-info { background-color: #dbeafe; color: #1e40af; }

/* Dropdown Animation */
.dropdown-enter {
    animation: dropdownEnter 0.2s ease-out;
}

@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
.toast-enter {
    animation: toastEnter 0.3s ease-out;
}

@keyframes toastEnter {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* RTL Specific */
[dir="rtl"] .flip-rtl {
    transform: scaleX(-1);
}

/* Print Styles */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

/* Google Maps Styles */
#store-map {
    min-height: 320px;
    border-radius: 0.5rem;
    overflow: hidden;
}

#store-map .gm-style {
    font-family: 'Tajawal', sans-serif;
}

/* Fix Google Maps RTL issues */
[dir="rtl"] .gm-style .gm-style-mtc,
[dir="rtl"] .gm-style .gmnoprint {
    direction: ltr;
}

/* Google Maps Controls positioning for RTL */
[dir="rtl"] .gm-bundled-control {
    left: 10px !important;
    right: auto !important;
}

/* Map loading placeholder */
#store-map:empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
}

#store-map:empty::after {
    content: 'جاري تحميل الخريطة...';
    color: #6b7280;
    font-size: 0.875rem;
}
