html {
    scroll-behavior: smooth;

}


.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1.5rem;
}

.modal-title {
    color: #2c3e50;
}

.modal-body {
    padding: 2rem;
}

.modal-body i {
    color: #3498db;
}

.modal-footer {
    padding: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-outline-danger:hover {
    background-color: #e74c3c;
    color: white;
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    color: white;
}

.btn-link {
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* تحريك الأزرار عند المرور عليها */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    border: none;
    color: #6c757d;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #3498db;
}

.nav-tabs .nav-link.active {
    border: none;
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* تنسيق النماذج */
.tab-content {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* تنسيق الأزرار */
.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

/* WhatsApp Button Style */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    /* ضبط المسافة من أسفل الصفحة */
    right: 30px;
    z-index: 99;
    background-color: #25d366;
    border-color: #25d366;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    transition: all 0.3s;
    animation: whatsappBounce 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-btn i {
    font-size: 24px;
    color: white;
}

@keyframes whatsappBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* تعديل موضع الزرين على الشاشات الصغيرة */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 90px;
        right: 30px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-btn i {
        font-size: 20px;
    }

    /* Ensure tabs are visible and scrollable within the modal on small screens */
    .modal-dialog .nav-tabs {
        display: flex !important;
        /* Use flexbox to keep tabs in a row, override any other display */
        overflow-x: auto !important;
        /* Enable horizontal scrolling, override any other overflow */
        flex-wrap: nowrap !important;
        /* Prevent wrapping, override any other flex-wrap */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        padding-bottom: 10px;
        /* Add some padding for scrollbar if visible */
        border-bottom: 1px solid #dee2e6;
        /* Ensure border is visible */
    }

    .modal-dialog .nav-tabs .nav-item {
        flex-shrink: 0;
        /* Prevent items from shrinking */
    }

    .modal-dialog .nav-tabs .nav-link {
        white-space: nowrap;
        /* Prevent text from wrapping inside tabs */
        padding: 0.5rem 1rem;
        /* Adjust padding for smaller screens */
        font-size: 0.875rem;
        /* Adjust font size */
    }

    /* Hide scrollbar for a cleaner look */
    .modal-dialog .nav-tabs::-webkit-scrollbar {
        display: none;
    }
}

.user-dropdown {
    width: 280px;
    padding: 0;
}

.user-dropdown .dropdown-header {
    background-color: #f8f9fa;
}

.user-dropdown .user-info h6 {
    font-size: 0.9rem;
    color: #333;
}

.user-dropdown .user-info small {
    font-size: 0.8rem;
}

.user-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.user-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.user-dropdown .badge {
    font-size: 0.8rem;
    padding: 0.5rem;
}

.user-dropdown .dropdown-divider {
    margin: 0;
}

.default-avatar {
    background-color: #e9ecef;
}

.stats-grid {
    font-size: 0.9rem;
}

.stat-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: #666;
    font-size: 0.8rem;
}

.stats-row {
    margin-top: 0.75rem;
}

.stat-pill {
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-pill i {
    font-size: 1rem;
}

/* تحسين ألوان الخلفية */
.bg-success-subtle {
    background-color: #d1e7dd;
}

.bg-warning-subtle {
    background-color: #fff3cd;
}

.bg-primary-subtle {
    background-color: #cfe2ff;
}

.bg-info-subtle {
    background-color: #cff4fc;
}

/* تأثيرات التحويم */
.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Styles */
/* .navbar-collapse {
    transition: transform 0.3s ease-out, opacity 0.2s ease;
} */

@media (max-width: 991.98px) {
    /* .navbar-collapse {
        position: fixed;
        top: 0;
        right: -280px;
        *//*Startoff-screen*//*bottom: 0;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        opacity: 0;
        overflow-y: auto;
        padding: 1.5rem;
        transition: all 0.3s ease-in-out;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -ms-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
} */

    /* .navbar-collapse.show {
        right: 0;
        opacity: 1;
    } */

    .navbar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Nav Items Animation */
    .nav-item {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: calc(0.1s * var(--item-index));
    }

    /* .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    } */

    /* Dropdown Animation */
    .dropdown-menu {
        border: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0.5rem 0;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
        transform-origin: top center;
        opacity: 0;
        transform: scaleY(0);
        transition: all 0.2s ease-in-out;
    }

    .dropdown-menu.show {
        opacity: 1;
        transform: scaleY(1);
    }

    .dropdown-item {
        padding: 0.75rem 1.5rem;
        position: relative;
        transition: all 0.2s ease;
    }

    .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.05);
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {
    .modal-dialog .nav-tabs {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .modal-dialog .nav-tabs .nav-item {
        flex-shrink: 0 !important;
    }

    .modal-dialog .nav-tabs .nav-link {
        white-space: nowrap !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }

    .modal-dialog .nav-tabs::-webkit-scrollbar {
        display: none !important;
    }
}