@tailwind base;
@tailwind components;
@tailwind utilities;

/* General Styles */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', system-ui, -apple-system, sans-serif;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

/* Hero Section */
.hero {
    background: linear-gradient(45deg, #2937f0, #9f1ae2);
    padding: 80px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Service Cards */
.service-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.recaptcha-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.recaptcha-message.text-success {
    color: #198754;
}

.recaptcha-message.text-danger {
    color: #dc3545;
}

.g-recaptcha {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Sidebar Menu Styles */
.sidebar-menu {
    width: 250px; /* تنظیم عرض منو */
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    margin-bottom: 10px;
}

.sidebar-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.sidebar-menu ul li a i {
    margin-left: 10px; /* فاصله بین آیکون و متن */
    font-size: 1.2rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
}

.dashboard-content {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

/* RTL Specific Fixes */
.dropdown-menu {
    text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar-menu {
        width: 100%;
        margin-bottom: 20px;
    }
}
.password-strength .indicator {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-top: 5px;
}

.password-strength .indicator div {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
    border-radius: 3px;
}

.form-error {
    color: #dc3545;
    margin-top: 0.25rem;
}

/* بازگرداندن استایل‌های منوی کاربر */
.user-dropdown {
    /* استایل‌های bootstrap */
    display: inline-block;
    position: relative;
}

.user-dropdown .dropdown-menu {
    /* استایل‌های bootstrap */
    position: absolute;
    right: 0;
    z-index: 1000;
    /* ... سایر استایل‌های مورد نیاز */
}

/* اضافه کردن !important برای استایل‌های حیاتی */
.user-profile-button {
    display: flex !important;
    align-items: center !important;
}