﻿/* General Styles */
body {
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
}

/* Navbar Styles */
.navbar {
    background-color: #1a1a1a;
    border-bottom: 2px solid #ffc107;
    padding: 10px 0;
}

.navbar-brand {
    color: #ffc107 !important;
    font-weight: 600;
    font-size: 1.5rem;
    margin-right: 170px;
}

.nav-link {
    color: #ffc107 !important;
    font-weight: 500;
}

    .nav-link:hover {
        color: #fff !important;
    }

/* Dropdown Styles */
.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #ffc107;
}

.dropdown-item {
    color: #ffc107;
}

    .dropdown-item:hover {
        background-color: #ffc107;
        color: #1a1a1a;
    }

/* Carousel Styles */
.carousel-inner img {
    border-radius: 15px;
    transition: all 0.5s ease;
    max-height: 400px;
    object-fit: cover;
}

.carousel-item.active img {
    transform: scale(1.1);
}

.carousel-indicators {
    bottom: -25px;
}

    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #ffc107;
        border: none;
    }

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #ffc107;
    border-radius: 50%;
    padding: 12px;
}

/* Section Divider */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(to right, #ffc107, transparent);
    margin: 20px 0;
}

    .section-divider::before {
        content: '';
        position: absolute;
        top: -4px;
        right: 0;
        width: 10px;
        height: 10px;
        background-color: #ffc107;
        border-radius: 50%;
    }

/* Client Styles */
.client-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

    .client-logo:hover {
        transform: scale(1.1);
    }

.client-item p {
    margin: 5px 0;
    font-size: 14px;
}

.info-icon {
    color: #ffc107;
    margin-left: 5px;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    border-top: 2px solid #ffc107;
}

    .footer a {
        color: #ffc107;
        text-decoration: none;
    }

        .footer a:hover {
            color: #fff;
        }

    .footer .social-icons a {
        font-size: 20px;
        margin: 0 10px;
    }

/* Button Styles */
.btn-login {
    background-color: #ffc107;
    color: #1a1a1a;
    border: none;
    padding: 5px 15px;
    font-weight: 500;
    margin-right: 25px;
}

    .btn-login:hover {
        background-color: #fff;
        color: #1a1a1a;
    }

/* Login Card Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    background-color: #2a2a2a;
    border: 1px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    margin: 0 auto;

}

    .card.hidden {
        opacity: 0;
        transform: translateY(50px);
        pointer-events: none;
        position: absolute;
        margin: 0 auto;
    }

    .card h3 {
        color: #ffc107;
        text-align: center;
        margin :0 auto;

    }

.btn-custom {
    background-color: #ffc107;
    color: #1a1a1a;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .btn-custom:hover {
        background-color: #fff;
        color: #1a1a1a;
    }

.small-link {
    font-size: 12px;
    color: #ffc107;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
}

    .small-link:hover {
        color: #fff;
    }

/* Form Styles */
.form-control {
    background-color: #1a1a1a;
    border: 1px solid #ffc107;
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

    .form-control:focus {
        background-color: #1a1a1a;
        border-color: #fff;
        color: #fff;
        box-shadow: none;
    }

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

/* Checkbox Styles */
.checkbox-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    direction: rtl;
}

.form-check-input {
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0;
    z-index: 1;
}

.form-check-label {
    color: #ffc107;
    font-size: 14px;
    padding-left: 25px;
    cursor: pointer;
    position: relative;
}

    .form-check-label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background-color: #1a1a1a;
        border: 1px solid #ffc107;
        border-radius: 4px;
    }

.form-check-input:checked + .form-check-label::before {
    background-color: #ffc107;
}

.form-check-input:checked + .form-check-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #1a1a1a;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* Password Strength Meter */
#password-strength-bar {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 5px;
    background: linear-gradient(to right, #ff4d4d, #ffcc00, #00cc00);
    border-radius: 5px;
    overflow: hidden;
}

#password-strength-fill {
    height: 100%;
    width: 0;
    background-color: transparent;
    transition: width 0.3s ease;
}

#password-strength-text {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
    color: #fff;
}

/* Admin Panel Styles */

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
        margin-right: 0;
    }

   .btn-login {
    background-color: #ffc107;
    color: #1a1a1a;
    border: none;
    padding: 5px 15px;
    font-weight: 500;
    margin-right: 25px;
}

    .btn-login:hover {
        background-color: #fff;
        color: #1a1a1a;
    }

    .carousel-inner img {
        max-height: 200px;
    }

    .carousel-item.active img {
        transform: scale(1);
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .footer h5 {
        font-size: 1rem;
    }

    .footer .col-md-3 {
        margin-bottom: 20px;
    }

    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-right: 220px;
    }

    .dropdown {
        right: -10px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .section-divider {
        margin: 15px 0;
    }

    .info-icon {
        font-size: 12px;
    }

    .client-item {
        width: 50%;
    }

    .client-logo {
        width: 60px;
        height: 60px;
    }

    .footer .row {
        text-align: center;
    }

    .footer .social-icons a {
        font-size: 18px;
        margin: 0 5px;
    }

    .card {
        max-width: 90%;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-left: none;
        border-top: 1px solid #ffc107;
        padding: 10px;
        top: 0;
    }

    .main-content {
        margin-right: 0;
        padding: 10px;
        margin-top: 10px;
    }

    .header {
        padding: 10px;
    }

    .dropdown {
        right: 0;
        left: auto;
        width: 120px;
    }
}
