body {
    font-family: "Cairo";
    overflow: auto;
}

/* navbar */

.navbar-brand {
    font-weight: bold;
    color: rgba(254, 119, 67, 1);
    font-family: "Cairo";
    font-weight: 600;
    font-size: 22px;
}

.nav-link.active {
    font-weight: bold;
    color: rgba(39, 63, 79, 1) !important;
}

.btn-orange {
    background-color: #f97316;
    color: white;
    border: none;
}

.btn-orange:hover {
    background-color: #ea580c;
}


.navbar-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    font-family: "Cairo";
    font-weight: 500;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5) !important;
}



nav .btn {
    color: rgba(254, 119, 67, 1);
    border-color: rgba(254, 119, 67, 1);
    border-radius: 8px;
}

nav .btn:hover {
    background-color: rgba(254, 119, 67, 1);
    color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-icons i {
    font-size: 1.5rem;
    color: gray;
    cursor: pointer;
}

.navbar-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.search-container {
    position: relative;
}

.search-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.search-box {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 1000;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.bi-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

@media (max-width: 768px) {
    .search-box {
        width: 300px;
        top: auto;
        left: 50%;
    }

    .search-icon,
    .bi-cart {
        font-size: 1.2rem;
    }

    .navbar-icons img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width:990px) {
    .search-box {
        width: 300px;
        top: auto;
        left: 50%;
    }
}

/* content */

.content {
    position: relative;
    background: rgba(39, 63, 79, 1);
    height: 100vh;
}

.sidebar .nav-link {
    color: rgb(211, 210, 210) !important;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.sidebar .nav-link:hover {
    background: #34495e;
    transform: translateX(5px);
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    height: 100%;
}

.bot-icon {
    width: 90px;
    height: 90px;
    background: rgba(254, 119, 67, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(254, 119, 67, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

h2 {
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

p {
    color: #bdc3c7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.chat-messages {
    width: 100%;
    max-width: 600px;
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.message {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    transition: transform 0.3s ease;
}

.message.user-message {
    background: #ff6f61;
    margin-left: auto;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message.bot-message {
    background: #34495e;
    margin-right: auto;
    color: #ecf0f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-input-container {
    position: absolute;
    width: calc(100% - 300px);
    display: flex;
    justify-content: center;
    z-index: 1000;
    bottom: 3%;
}

.chat-input-box {
    background: #34495e;
    border-radius: 15px;
    padding: 10px 15px;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.chat-input {
    background: transparent;
    border: none;
    color: #bdc3c7;
    padding: 10px;
    flex-grow: 1;
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    color: #ecf0f1;
}

.chat-input::placeholder {
    color: #bdc3c7;
}

.btn-icon {
    background: transparent;
    border: none;
    color: #bdc3c7;
    font-size: 1.2rem;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.btn-icon:hover {
    color: #ff6f61;
}

.btn-submit {
    background: #ff6f61;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: #e65b50;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
        padding: 20px;
    }

    .chat-input-container {
        width: calc(100% - 220px);
        margin-left: 200px;
    }

    .chat-input-box {
        max-width: 100%;
    }

    .bot-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        transform: translateY(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateY(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }

    .chat-input-container {
        width: 100%;
        margin-left: 0;
        padding: 0 10px;
    }

    .chat-messages {
        max-width: 100%;
    }
}

/* footer */

.footer {
    background-color: #f1ece5;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 9rem;
}

.footer .nav-link {
    color: #1a3c5e;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer .nav-link:hover {
    color: #f4a261;
}

.footer .social-icons a {
    color: #f4a261;
    margin: 0 5px;
    font-size: 1.2rem;
}

.footer .copyright {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer .row {
        flex-direction: column;
        align-items: center;
    }

    .footer .logo {
        margin-bottom: 15px;
        justify-content: center;
    }

    .footer .nav {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .footer .nav-link {
        display: block;
        margin: 5px 0;
        font-size: 0.85rem;
    }

    .footer .social-icons {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer .social-icons a {
        font-size: 1.1rem;
        margin: 0 8px;
    }

    .footer .copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 15px;
    }

    .footer .logo img {
        height: 24px;
        width: 24px;
    }

    .footer .logo span {
        font-size: 1.3rem;
    }

    .footer .nav-link {
        font-size: 0.8rem;
    }

    .footer .social-icons a {
        font-size: 1rem;
        margin: 0 6px;
    }

    .footer .copyright {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}
