/* start main rulez  */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary: #aa00ff;
    --primary-dark: #840cc0;
    --secondary: #1f2937;
    --light: #f9fafb;
    --gray: #e5e7eb;
}


body {
    font-family: 'Cairo', sans-serif;

    /* background-color: #EEE; */
    font-size: 16px;
    color: #34495e;
}

h1,
h2 {
    margin: 20px 0;
}

a {
    text-decoration: none;
}

/* end main rulez  */

/* start bootstrap edits */
.dropdown-edit {
    left: 0;
    top: 95%;
    min-width: 13rem;
    padding: 0 !important;
}


.dropdown-divider {
    margin: 0;
}

.dropdown-item {
    padding: 8px 10px;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.navbar-brand {
    padding: 15px 0;

}

.navbar-toggler {
    margin: 15px;
}

header .nav-item,
header .nav-link {
    padding: 9px;
}

header .nav-link {
    color: #34495e !important;
}

header .nav-logo {
    color: #aa00ff !important;
    font-weight: bold;
}

header .nav-item:hover {
    background-color: rgba(109, 106, 106, 0.144);
}

header .navbar-dark .navbar-nav .active>.nav-item,
header .navbar-dark .navbar-nav .nav-item.active,
header .navbar-dark .navbar-nav .nav-item.show,
header .navbar-dark .navbar-nav .show>.nav-item,
header .search-bar .btn:hover {
    /* background-color: #16793f; */
    /* old */
    background-color: #dcdcdc;
}

.alert {
    max-width: 300px;
    margin: 100px auto;
}

.search-bar input {
    width: 300px !important;
}

.search-bar {
    margin: auto;
}

.search-bar-lg {
    margin-top: 12px;
}

.search-bar .btn {
    color: #fff;
    border-color: #fff;
}

.search-bar-sm {
    display: none;
}

@media(max-width:991px) {
    .search-bar-lg {
        display: none;
    }

    .search-bar-sm {
        display: flex;
        padding: 10px 0;
    }

    .search-bar-sm form {
        flex-flow: unset;
    }

    .search-bar-sm input {
        width: 220px !important;
    }

    /* .li-notfi-lg {
        display: none;
    } */

    .li-notfi-sm {
        display: list-item;
        margin-right: 15px;
    }

    .li-notfi-sm .div-notfication {
        position: absolute;
    }
}

.notfication::after {
    content: unset;
}

.notfication {
    font-size: 20px;
    padding: 5px;
    position: relative;
}

.li-notfi {
    padding-right: 11px;
}

.notfication span {
    font-size: 11px;
    position: absolute;
}

.notfication .msgs-word {
    font-size: 16px;
    position: static;
}

@media(min-width:991px) {
    .notfication .msgs-word {
        display: none;
    }

}

.div-notfication {
    padding: 0;
    width: 300px;
    max-height: 317px;
    overflow: auto;
}

.div-notfication .notfUser img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.div-notfication .notfUser {
    width: 50px;
    height: 50px;
    display: inline-block;
}

.div-notfication .messagefrom {
    display: inline-block;
    margin-left: 10px;
}

.norecords {
    padding: 15px;
}

/* end bootstrap edits */
/* start index */
.dropdown-mega-edit {
    width: 952px;
    left: 0;
    padding: 20px 30px !important;
}

@media(max-width:1180px) {
    .dropdown-mega-edit {
        width: 722px;
    }
}

.link-in-small {
    display: none;

}

@media(max-width:990px) {

    .dropdown-in-big {
        display: none;

    }

    .link-in-small {
        display: block;

    }
}

/* 
@media(max-width:510px) {
    .dropdown-mega-edit {
        width: 250px;
    }
} */

.dropdown-side {
    margin: 15px;
    min-width: 200px;
}

/* end index */
/* start Item */

.card-item {
    padding: 15px;
    margin-top: 15px;
    border-radius: 10px;
    position: relative;
    height: 230px;
    /* width: 255px; */
}

.card-item img {
    object-fit: cover;
    height: 130px;

}

.card-body-item {
    padding: 15px 5px 0 5px;
}

.link-title-item {
    color: #34495e;
}

.link-title-item:hover {
    color: #34495e;
    text-decoration: none;
}

.card-item .card-text {
    transition: 0.3s;
}

.card-item:hover .card-text {
    color: #2ecc71;
}

.card-item .price-item {
    position: absolute;
    top: 5%;
    right: 5%;
    background-color: #2ecc71;
    color: #fff;
    padding: 2.5px;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
    font-weight: bold;

}

.card-item .status-item {
    position: absolute;
    top: 5%;
    left: 0%;
    background-color: #2ecc71;
    color: #fff;
    font-weight: bold;
    padding: 2.5px 10px;
    border-radius: 0px;
    min-width: 30px;
    text-align: center;
}

.card-item .pending {
    background-color: #f1c40f;
}

.card-item .normal {
    background-color: #34495e;
}

.card-item .special {
    background-color: #2ecc71;
}

.card-item .sponsered {
    background-color: #3498db;
}

.card-item .blocked {
    background-color: #e74c3c;
}

.user.card .card-title a,
.custom-a {
    color: #34495e;
    text-decoration: none;
    transition: 0.5s;
}

.user.card .card-title a:hover,
.custom-a:hover {
    color: #6898c9;
    text-decoration: none;

}

/* end Item */
/* start login-page */
.login-page form {
    max-width: 300px;
    padding: 0px 20px;
    margin: auto;
}

.login-page form input,
.login-page form input {
    margin: 15px 0;
}

.login-page .selected {
    background-color: #FFF;
}

.login-page span {
    cursor: pointer;
    background-color: #EEE;
    padding: 15px;
    display: inline-block;
    width: 49.2%;
    text-align: center;
}




.login-page .signup {
    display: none;
}

.login-page .box-login-signup {
    background-color: #fff;
    max-width: 300px;
    margin: auto;
    margin-top: 90px;
    margin-bottom: 30px;
    padding-bottom: 50px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border-radius: 15px;

}

.login-page .box-login-signup form {
    margin-top: 70px;
}

.login-page .alert,
.create-item .alert {
    margin: 15px auto;
    color: #000;
    background-color: #FFF;
    border: none;
    border-left: 5px solid #e74c3c;
}

.successMsg {
    border: 1px solid #eee;
    border-left: 5px solid #2ecc71;
}

/* end login-page */
/* start profile page  */

.UserProfImg img {
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.UserProfImg {
    width: 100px;
    height: 100px;
    margin: 15px auto;
}

.chpass {
    text-align: center;
}

.formErrors .alert {
    margin: 15px auto;
}

/* end profile page  */
/* start New item Page */
.dollar {
    font-size: 25px;
    font-weight: bold;
}

#imageItem {
    padding: 3px 10px;
}

.image-item {
    width: 80px;
    height: 50px;
}

.description-item {
    max-width: 250px;
}

.main-table .btn {
    margin: 5px;
}

.img-preview-item img {
    max-width: 100%;
    max-height: 100%;
}

.img-preview-item {
    width: 500px;
    max-height: 500px;
}

.description-item-edit {
    height: 150px !important;
}

.new-item-form {
    max-width: 500px;
    margin: auto;
}

.showpass {
    position: absolute;
    top: 30%;
    right: 7%;
}

.price-item.row {
    padding: 0 15px;

}

.items-errors {
    margin: auto;
}

/* end New item Page */
/* start show item page  */

.user.card {
    margin: 40px 0;
    margin-right: auto;
    margin-left: auto;
    padding-top: 15px;
    text-align: center;
}

.user.card .card-img-top {
    max-width: 150px;
    max-height: 150px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 50%;
    object-fit: cover;
}

.imageUserComment img {
    width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.imageUserComment {
    width: 50px;
    height: 50px;
    border-radius: 50%;

}

.nameUser {
    margin: 15px 0 0 10px;
}


.add-comment {
    margin-top: 20px;
    margin-bottom: 20px !important;
}

.add-comment .btn {
    margin-top: 10px;
}

.comment-alert {
    margin: 15px;
    margin-left: 0;
}

.userComment {
    border: 1px solid #EEE;
    padding: 15px;
    background-color: #EEE;
    margin: 10px 25px;
    border-radius: 15px;
}

/* end show item page  */
/* start index */
/* .home-title { */
/* background-color: #34495e; */
/* color: #34495e; */

/* width: 280px; */
/* padding-top: 10px;
    padding-bottom: 10px; */
/* padding-left: 15px; */
/* text-align: left;
    border-radius: 15px;
    margin-right: auto;
    margin-left: auto;
    font-weight: bold;
} */

/* end index */


.invoice .card-text {
    /* margin-top: 5px; */
    margin-bottom: 5px;

}

.invoice .card-text .btn {
    margin-right: 5px;
    margin-left: 5px;

}

@media (min-width: 768px) {
    .invoice_container {
        max-width: 850px;
    }
}

@media (min-width: 1200px) {
    .invoice_container {
        max-width: 1140px;
    }
}

.dropdown-title:hover,
.dropdown-item:hover {
    background-color: #f4f4f4;
}

.dropdown-title {
    color: #34495e;
    padding: 5px;


}

@media (max-width: 991px) {
    div.last-req {
        display: none !important;
    }

}



.mt-7r {
    margin-top: 7rem !important;
}




.noAcolors p,
.noAcolors h5,
.noAcolors {
    color: #002944;
}

.noAcolors:hover {
    text-decoration: none !important;

}

.noAcolors:hover .chat-card {
    background-color: #f4f4f4;
}

.msgs-word {
    display: inline-block;
}

.messagefrom {
    white-space: nowrap;
    width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messagefromWithoutImage {
    width: 250px !important;

}

.balance-card {
    margin: 15px;
}

.invoice .card-img-top {
    height: 44px;
    object-fit: contain;
}


.container {
    max-width: 1300px;
}

.btn-custom {
    background-color: #fff;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border: none;
    color: #000;
}

.btn-custom:hover {
    background-color: #aa00ff;
    color: #fff;
}

.sidebar-filter-button {
    display: none;
    height: 40px;
}

.add-button-in-mob {
    display: none;
}

.add-button-in-desk {
    display: block;
}

@media(max-width: 990px) {
    .sidebar-filter-button {
        display: block;
    }

    .add-button-in-mob {
        display: block;
    }

    .add-button-in-desk {
        display: none;
    }

}



.pagination-custom span,
.pagination-custom a {
    color: #34495e !important;
    background-color: #fff !important;
}

.pagination-custom .active .page-link {
    border-color: green !important;
}




.imageUser {
    position: relative;
}


.card-header-custom {
    background-color: #FFF;
}

.custom-title {
    padding: 15px;
}

.recordOfUser {
    padding: 0 !important;
}

.recordOfUser audio {
    border-radius: 15px !important;
    width: 100%;
}

.imageOfUser {
    height: 300px;
}

.imageOfUser img {
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.oldmessagesScroll {
    position: relative;
}

.scrollToMessages {
    position: absolute;
    top: 0%;
    left: 49%;
    width: 50px;
    height: 50px;
}

.scrollToMessages a {
    font-size: 20px;
    color: black;
}


.stars {
    display: flex;
    flex-direction: row-reverse;
}

.stars input {
    display: none;
}

.stars label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    transition: color 0.2s;
}

.stars input:checked~label {
    color: #2b2b2b;
}

.stars label:hover,
.stars label:hover~label {
    color: #000;
}

/* #footer {
    background-color: rgb(2, 58, 95);
    -COMMENT- background-color: rgb(17 24 39);
    -COMMENT- margin-top: 20px;
}

#footer h5 {
    color: #fff;
}

#footer a {
    color: #fff;
}

#footer .footer-social {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 25px 0;
}

#footer .footer-copyright {
    color: #fff;
    background-color: rgb(2, 58, 95);
}


#footer a:hover {
    text-decoration: none;
    color: #eee;
} */

/* new footer */
    /* الفوتر */
        .footer {
            background-color: var(--secondary);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-column h5 {
            font-weight: 600;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .footer-link {
            color: #d1d5db;
            text-decoration: none;
            display: block;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            transition: color 0.3s;
        }

        .footer-link:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin: 2rem 0;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background-color: rgba(255,255,255,0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background-color: var(--primary);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 2rem;
            text-align: center;
            color: #d1d5db;
            font-size: 0.9rem;
        }

        /* التجاوب */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .section-title {
                font-size: 1.75rem;
            }

            .cta-title {
                font-size: 1.75rem;
            }
        }
/* end new footer */


/* chat from gemini */

#chat-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 85vh;
    /* ارتفاع الشات */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#chat-container .chat-header a {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 15px;
}

#chat-container .chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#chat-container .chat-header h5 {
    color: #34495e;
    margin: 0;
    font-weight: 600;
}

#chat-container .messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    /* يجعل منطقة الرسائل قابلة للتمرير */
    display: flex;
    flex-direction: column;
    /* لترتيب الرسائل فوق بعضها */
}

#chat-container .message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
    max-width: 70%;
}

#chat-container .message-content {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    word-wrap: break-word;
}

#chat-container .message-content .timestamp {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

/* رسالة مستلمة (من الطرف الآخر) */
#chat-container .message.received {
    align-self: flex-start;
}

#chat-container .message.received .message-content {
    background-color: #e4e6eb;
    color: #050505;
}

/* رسالة مرسلة (منك) */
#chat-container .message.sent {
    align-self: flex-end;
    /* أهم خاصية لدفع الرسالة لليمين */
}

#chat-container .message.sent .message-content {
    background-color: #0084ff;
    /* لون ماسنجر الأزرق */
    color: white;
}

#chat-container .chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

#chat-container .chat-input-area form {
    display: flex;
    gap: 10px;
}

#chat-container .chat-input-area input[type="text"] {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 10px 15px;
    font-size: 1rem;
}

#chat-container .chat-input-area input[type="text"]:focus {
    outline: none;
    border-color: #0084ff;
}

#chat-container .chat-input-area button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #0084ff;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* استايل لملفات الصوت والملفات المرفقة */
#chat-container .voice-message audio {
    max-width: 250px;
    height: 40px;
}

#chat-container .file-attachment a {
    display: inline-block;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    margin-top: 5px;
}

/* أضف هذه الأكواد إلى قسم ה-style الموجود بالفعل */

#chat-container .chat-input-area form {
    align-items: center;
    /* لمحاذاة العناصر بشكل أفضل */
}

#chat-container .icon-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #0084ff;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    /* لمنع الأزرار من التقلص */
    display: grid;
    place-items: center;
}

#chat-container .icon-btn:hover {
    background-color: #f0f2f5;
}

#chat-container .send-btn {
    background-color: #0084ff;
    color: white;
}

#chat-container .send-btn:hover {
    background-color: #0073e6;
}

/* ستايل لزر التسجيل أثناء التسجيل */
#chat-container #record-voice-btn.recording {
    color: #fff;
    background-color: #dc3545;
    /* أحمر */
}

/* end chat from gemini */


/* new styles */
.btn-outline-custom {
    color: #aa00ff;
    border-color: #aa00ff;
}

.btn-outline-custom:hover {
    color: #fff;
    border-color: #aa00ff;
    background-color: #aa00ff;
}