﻿

.dfuhtgdf{
    width:40px;
    margin-left:10px;
}

.dsfugtdsfdsf {
    display:none;
    background-color:transparent;
    border:0px;
    font-weight:bold;
    font-size:22px;
}

@media (max-width: 992px) {
    .dsfugtdsfdsf {
        display:inline-block;
    }
}

:root {
    --primary-color: #435fee;
    --secondary-color: #0c25a3;
    --accent-color: #4c91f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*padding-top: 180px;*/
    padding-top: 70px;
    background-color: #f8f9fa;
    text-align: right;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0px 0;
    border-bottom-left-radius:20px;
    border-bottom-right-radius:20px;
    /*min-height:200px;*/
}

.main-header.scrolled {
    min-height:10px;
    padding: 0px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
}

.brand-logo {
    background-color: white;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.navbar-nav {
    margin-right: auto !important; 
    margin-left: 0 !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 3px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: right;
}

.navbar-nav .nav-link i {
    margin-left: 8px;
    margin-right: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    text-align: right;
    left: 0 !important; 
    right: auto !important;
}

.dropdown-item {
    text-align: right;
    padding: 8px 20px;
}

.dropdown-item i {
    margin-left: 10px;
    margin-right: 0;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
    margin-left: auto;
    margin-right: 0;
    order: 3;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.search-box {
    position: relative;
    max-width: 250px;
    margin-left: auto; 
    margin-right: 15px;
    order: 2; 
}

.search-box input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 30px;
    padding-right: 20px;
    padding-left: 45px;
    transition: all 0.3s ease;
    text-align: right;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.search-box input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2);
}

.search-box button {
    position: absolute;
    left: 10px;
    right: auto;
    top: 60%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.navbar-collapse {
    display: flex;
    flex-direction: row;
    align-items: center;
}

@media (max-width: 992px) {
    .navbar-collapse {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        order: 1;
        max-width: 100%;
        margin: 15px 0;
        margin-right: 0;
        margin-left: 0;
    }

    .navbar-nav {
        order: 2;
        margin-right: 0 !important;
        margin-bottom: 15px;
        width: 100%;
    }

    .navbar-toggler {
        order: 4;
        margin-left: auto;
        margin-right: 0;
    }

    .navbar-nav .nav-link {
        text-align: right;
        margin: 3px 0;
        padding: 10px 15px;
    }

    .dropdown-menu {
        text-align: right;
        right: auto !important;
        left: 0 !important;
    }
}

@media (max-width: 768px) {
    .brand {
        font-size:16px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .search-box input {
        font-size: 0.9rem;
    }
}

.navbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}



:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --bottom-nav-height: 75px;
}
:root {
    --primary-color: #435fee;
    --secondary-color: #0c25a3;
    --accent-color: #4c91f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}


.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
    border-top-right-radius:20px;
    border-top-left-radius:20px;
    overflow:hidden;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    margin: 0 0px;
}

.bottom-nav .nav-item:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.bottom-nav .nav-item.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.08);
}

    .bottom-nav .nav-item.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
        height: 4px;
        background-color: var(--primary-color);
        border-radius: 0 0 4px 4px;
    }

.bottom-nav .nav-icon {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.bottom-nav .nav-item:hover .nav-icon {
    transform: translateY(-3px);
}

.bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-3px);
}

.bottom-nav .nav-text {
    font-size: 0.8rem;
    font-weight: 500;
    transition: font-weight 0.3s ease;
}

.bottom-nav .nav-item.active .nav-text {
    font-weight: 700;
}


@media (max-width: 768px) {
    .bottom-nav .nav-text {
        font-size: 0.8rem;
    }

    .bottom-nav .nav-icon {
        font-size: 1.5rem;
    }

    .bottom-nav .bottom-nav {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .bottom-nav .nav-text {
        font-size: 0.75rem;
    }

    .bottom-nav .nav-icon {
        font-size: 1.2rem;
        margin-bottom: 0px;
    }

    .bottom-nav .bottom-nav {
        height: 65px;
        padding: 0 2px;
    }
}

@media (max-height: 500px) {
    .bottom-nav .bottom-nav {
        height: 60px;
    }

    .bottom-nav .nav-icon {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }

    .bottom-nav .nav-text {
        font-size: 0.75rem;
    }
}