﻿









body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.navbar.dark-mode, .footer.dark-mode {
    background-color: #1f1f1f !important;
    color: #fff !important;
}

.card.dark-mode {
    background-color: #2a2a2a;
    color: #ffffff;
}

a, .btn {
    transition: background-color 0.3s, color 0.3s;
}



/* يمكنك إضافة المزيد حسب التصميم */





html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========== تنسيقات الصور داخل الإعلانات ========== */

.listing-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* ========== شريط التنقل (Navbar) ========== */

.navbar {
    background: linear-gradient(to left, #007bff, #6610f2);
}

.navbar-brand,
.nav-link {
    color: white !important;
    font-weight: bold;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========== الفوتر ========== */

footer {
    background-color: #343a40;
    color: #ddd;
    padding: 20px 0;
}

    footer a {
        color: #bbb;
        text-decoration: none;
    }

        footer a:hover {
            color: #fff;
        }

/* ========== زر الإضافة العائم + ========== */

.floating-add-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ========== نافذة المودال لتسجيل الدخول ========== */

.modal-content {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-weight: bold;
    font-size: 20px;
}

.modal-body .btn-primary {
    background-color: #007bff;
    font-weight: bold;
    border-radius: 8px;
}

/* ========== دعم الموبايل ========== */

@media (max-width: 768px) {
    .col-md-6 {
        width: 50%;
        
    }

    .listing-img {
        width: 100%;
        height: 350px;
        object-fit: cover;
    }

    .navbar .btn {
        margin-top: 10px;
        width: 100%;
    }

    .floating-add-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}



/* === Toast Notification Styles === */
.toast-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    font-size: 1rem;
    z-index: 9999;
    animation: fadein 0.3s ease-in-out;
}

    .toast-message.error {
        background-color: #dc3545;
    }

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

@media (max-width: 768px) {
    .toast-message {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}



.video-ad-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

    .video-ad-container video {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
    }

        .video-ad-container video::-webkit-media-controls,
        .video-ad-container video::-webkit-media-controls-enclosure,
        .video-ad-container video::-internal-media-controls-overlay-cast-button {
            display: none !important;
        }

@media (max-width: 768px) {
    .video-ad-container video {
        height: 200px;
    }
}

@media (min-width: 769px) {
    .video-ad-container video {
        height: 300px;
    }
}
