/* ========== الأساسيات ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}
.hover\:text-warning:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}
/* ========== التمرير المخصص ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

/* ========== الناف بار ========== */
.navbar {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(33, 37, 41, 0.95) !important;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        padding: 5px 0;
        background: rgba(33, 37, 41, 0.98) !important;
    }

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

.nav-link {
    position: relative;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: #ffc107;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 80%;
    }

    .nav-link:hover {
        color: #ffc107 !important;
    }

/* ========== الكروت ========== */
.card {
    transition: all 0.3s ease-in-out;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
        z-index: 1;
        pointer-events: none;
    }

    .card:hover::before {
        left: 100%;
    }

    .card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.card-img-top {
    transition: transform 0.5s ease;
    height: 250px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    line-height: 1.8;
}

/* ========== الأزرار ========== */
.btn {
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.2);
        transition: left 0.3s ease;
        z-index: -1;
    }

    .btn:hover::before {
        left: 0;
    }

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(45deg, #0056b3, #0097a7);
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0,123,255,0.4);
    }

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border: none;
    color: white;
}

    .btn-warning:hover {
        background: linear-gradient(45deg, #e0a800, #f57c00);
        color: white;
        transform: scale(1.05);
    }

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
}

    .btn-success:hover {
        background: linear-gradient(45deg, #218838, #1ba87e);
        transform: scale(1.05);
    }

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
}

    .btn-danger:hover {
        transform: scale(1.05);
    }

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

    .btn-outline-primary:hover {
        background: linear-gradient(45deg, #007bff, #00bcd4);
        border-color: transparent;
        color: white;
    }

/* ========== الهيرو سيكشن ========== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========== الفوتر ========== */
footer {
    background: linear-gradient(45deg, #1a1a1a, #2c3e50) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

    footer::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 50%);
        animation: rotate 30s linear infinite;
    }

    footer a {
        transition: all 0.3s ease;
        text-decoration: none;
    }

        footer a:hover {
            color: #ffc107 !important;
            padding-right: 5px;
        }

    footer hr {
        opacity: 0.2;
    }

/* ========== التأثيرات الحركية ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* كلاسات التأثيرات */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ========== السلايدر ========== */
.swiper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.swiper-slide {
    text-align: center;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.swiper-button-prev,
.swiper-button-next {
    color: #007bff !important;
    background: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 18px;
    }

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #007bff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007bff;
}

/* ========== القوائم (Badges) ========== */
.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

    .badge.bg-info {
        background: linear-gradient(45deg, #17a2b8, #138496) !important;
    }

/* ========== التنبيهات ========== */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-right: 4px solid #17a2b8;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffe8a1);
    color: #856404;
    border-right: 4px solid #ffc107;
}

/* ========== الفورم ========== */
.form-control {
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.1);
    }

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ========== الجداول ========== */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .table thead {
        background: linear-gradient(45deg, #007bff, #00bcd4);
        color: white;
    }

    .table th {
        font-weight: 600;
        border: none;
    }

    .table td {
        vertical-align: middle;
        padding: 15px;
    }

/* ========== الأيقونات ========== */
.bi {
    vertical-align: middle;
    margin-left: 5px;
}

/* ========== التجاوب مع الشاشات الصغيرة ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 20px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .swiper {
        height: 250px;
    }
}

/* ========== تأثيرات Hover.css المعدلة ========== */
.hvr-float {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
    transition-property: transform;
    transition-timing-function: ease-out;
}

    .hvr-float:hover,
    .hvr-float:focus,
    .hvr-float:active {
        transform: translateY(-8px);
    }

.hvr-pulse {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    animation: pulse 2s infinite;
}

/* ========== تحميل العناصر ========== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* ========== تأثيرات الصور ========== */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 10px;
}

    .img-hover-zoom img {
        transition: transform 0.5s ease;
    }

    .img-hover-zoom:hover img {
        transform: scale(1.1);
    }

/* ========== حدود متدرجة ========== */
.gradient-border {
    position: relative;
    border-radius: 15px;
    background: white;
    padding: 3px;
}

    .gradient-border::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #667eea, #764ba2);
        border-radius: 16px;
        z-index: -1;
    }

/* ========== تأثير الكتابة ========== */
.text-gradient {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* كروت التصنيفات */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-10px);
        border-color: #007bff;
        box-shadow: 0 10px 30px rgba(0,123,255,0.2);
    }

    .category-card i {
        transition: all 0.3s ease;
    }

    .category-card:hover i {
        transform: scale(1.1);
    }

    .category-card .badge {
        transition: all 0.3s ease;
    }

    .category-card:hover .badge {
        background-color: #0056b3 !important;
        color: white !important;
    }


/* تحسين كروت التصنيف في صفحة المنتجات */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    background: white;
}

    .category-card:hover {
        transform: translateY(-5px);
    }

    .category-card.border-primary {
        border-color: #007bff !important;
    }

    .category-card.border-success {
        border-color: #28a745 !important;
    }

    .category-card.border-warning {
        border-color: #ffc107 !important;
    }

    /* تحسين عرض الأعداد */
    .category-card .badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
    }

    /* تأثير عند التحويم */
    .category-card:hover .badge {
        transform: scale(1.05);
    }
/* ========== زر الواتساب العائم ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        background: #128C7E;
        color: white;
    }

/* ========== تأثيرات مخصصة للداشبورد ========== */
.dashboard-card {
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}
