/* استایل‌های اصلی سایت مشاوره حقوقی هوشمند */

:root {
    --primary: #19216C;       /* سرمه‌ای تیره */
    --primary-light: #2D3A8C; /* سرمه‌ای روشن‌تر */
    --secondary: #40BFAA;     /* فیروزه‌ای */
    --secondary-light: #5FCFBC; /* فیروزه‌ای روشن‌تر */
    --tertiary: #B0A8B9;      /* بنفش ملایم */
    --bg-color: #F7F9FC;      /* پس‌زمینه خاکستری روشن */
    --text-dark: #1A1B25;     /* متن تیره */
    --text-light: #FFFFFF;    /* متن روشن */
    --text-muted: #6B7280;    /* متن کم‌رنگ */
    --border-color: #E2E8F0;  /* رنگ حاشیه */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn i {
    margin-left: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-light {
    background-color: var(--text-light);
    color: var(--primary);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-light);
}

.btn-block {
    display: block;
    width: 100%;
}

/* هدر */
.main-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.logo img {
    height: 45px;
    margin-left: 0.5rem;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    padding: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: var(--secondary);
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-credit {
    display: flex;
    align-items: center;
    background-color: rgba(64, 191, 170, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin-left: 1rem;
    font-weight: 500;
}

.user-credit i {
    margin-left: 0.5rem;
}

.user-menu {
    position: relative;
    margin-right: 1rem;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.user-menu-btn i {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 200px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 101;
}

.user-menu:hover .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown ul li {
    padding: 0;
    margin: 0;
}

.user-menu-dropdown ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.user-menu-dropdown ul li a:hover {
    background-color: var(--bg-color);
}

.user-menu-dropdown ul li a i {
    margin-left: 0.5rem;
    width: 20px;
    text-align: center;
}

.user-menu-dropdown .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* منوی موبایل */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header img {
    height: 40px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

.mobile-menu ul li a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
}

.mobile-menu ul li a:hover {
    background-color: var(--bg-color);
}

.mobile-menu ul li a i {
    margin-left: 0.5rem;
    width: 20px;
    text-align: center;
}

.mobile-menu .divider {
    height: 10px;
    background-color: var(--bg-color);
}

/* فوتر */
.main-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-about {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-left: 0.5rem;
}

.footer-logo span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

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

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact p i {
    margin-left: 0.75rem;
    color: var(--secondary);
}

.footer-contact p a {
    color: var(--text-light);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links-bottom a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 1.5rem;
}

.footer-links-bottom a:hover {
    color: var(--secondary);
}

/* مودال ورود و ثبت‌نام */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-md);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

.tabs .tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tabs .tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tabs .tab.active {
    color: var(--secondary);
    border-color: var(--secondary);
}

.tab-pane {
    display: none;
    padding-top: 1.5rem;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 191, 170, 0.1);
}

.form-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-remember label {
    display: flex;
    align-items: center;
}

.form-remember label input {
    margin-left: 0.5rem;
    width: auto;
}

.forgot-password {
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-agree {
    margin-bottom: 1.5rem;
}

.form-agree label {
    display: flex;
    align-items: center;
}

.form-agree label input {
    margin-left: 0.5rem;
    width: auto;
}

.required {
    color: #E53E3E;
}

/* میانی صفحه */
main {
    min-height: calc(100vh - 70px - 350px); /* محاسبه ارتفاع محتوای میانی */
}

/* بخش قهرمان و باکس گفتگو */
.hero-section {
    padding: 4rem 0;
}

.chat-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chat-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.chat-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.chat-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.chat-box {
    flex: 1;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.chat-message {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 1rem;
}

.chat-message.user .chat-avatar {
    margin-left: 0;
    margin-right: 1rem;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-bubble {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    max-width: 70%;
}

.chat-message.user .chat-bubble {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.chat-message.ai .chat-bubble {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.chat-input {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    background-color: white;
}

.chat-form {
    position: relative;
}

.chat-input-field {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: none;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.chat-input-field:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 191, 170, 0.1);
}

.chat-send-btn {
    position: absolute;
    left: 10px;
    bottom: 10px;
    border: none;
    background-color: var(--secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background-color: var(--secondary-light);
}

.sample-prompts {
    margin-top: 1.5rem;
}

.sample-prompts h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.prompt-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompt-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.prompt-item:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.chat-lawyer {
    width: 300px;
}

.lawyer-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.lawyer-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-info {
    padding: 1.5rem;
}

.lawyer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.lawyer-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.lawyer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lawyer-badge {
    background-color: rgba(64, 191, 170, 0.1);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.lawyer-cta {
    text-align: center;
    margin-top: 1rem;
}

/* بخش ویژگی‌ها */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background-color: rgba(64, 191, 170, 0.1);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--secondary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
}

/* بخش چگونه کار می‌کند */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.step-item {
    position: relative;
    flex: 1;
    max-width: 350px;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


.step-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    background-color: rgba(64, 191, 170, 0.1);
    border-radius: 50%;
}

.step-icon i {
    font-size: 2.5rem;
    color: var(--secondary);
}

.step-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-item p {
    color: var(--text-muted);
}

/* بخش CTA */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(45deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* ریسپانسیو */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step-item {
        min-width: 280px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .chat-container {
        flex-direction: column;
    }
    
    .chat-lawyer {
        width: 100%;
    }
    
    .lawyer-card {
        position: static;
    }
    
    .lawyer-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        margin-right: 1rem;
    }
    
    .user-credit,
    .user-menu-btn span {
        display: none;
    }
    
    .user-actions .btn span {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links-bottom a {
        margin: 0 0.5rem;
    }
    
    .chat-box {
        height: 500px;
    }
    
    .chat-header h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chat-bubble {
        max-width: 85%;
    }
    
    .footer-links-bottom {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links-bottom a {
        margin: 0;
    }
}

/* حالت در حال تایپ (animation) */
.typing-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.typing-animation span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* استایل‌های صفحه پروفایل کاربر - اضافه شود به فایل style.css */

.profile-section {
    padding: 3rem 0;
}

.profile-header {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--text-muted);
}

.profile-content {
    display: flex;
    gap: 2rem;
}

.profile-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.profile-main {
    flex: 1;
}

.user-info {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.avatar-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

.user-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.user-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.user-status {
    margin-top: 1rem;
}

.user-status .status {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.user-status .status i {
    margin-left: 0.3rem;
}

.credit-info {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.credit-info h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.credit-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.credit-amount {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.credit-amount i {
    color: var(--secondary);
    margin-left: 0.5rem;
    font-size: 1.5rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.profile-menu {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-menu ul {
    list-style: none;
}

.profile-menu ul li {
    border-bottom: 1px solid var(--border-color);
}

.profile-menu ul li:last-child {
    border-bottom: none;
}

.profile-menu ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.profile-menu ul li a i {
    margin-left: 0.8rem;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.profile-menu ul li a:hover {
    background-color: var(--bg-color);
    color: var(--primary);
}

.profile-menu ul li.active a {
    background-color: var(--primary);
    color: var(--text-light);
}

.profile-menu ul li.active a i {
    color: var(--text-light);
}

.main-section {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-left: 0.5rem;
}

.view-all {
    font-size: 0.9rem;
    color: var(--secondary);
}

.view-all:hover {
    text-decoration: underline;
}

.section-content {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 191, 170, 0.1);
}

.form-group input[readonly] {
    background-color: var(--bg-color);
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.form-divider span {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-buttons {
    margin-top: 2rem;
}

.form-buttons .btn {
    padding: 0.75rem 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.empty-data {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
}

.empty-data.small {
    padding: 1.5rem 0;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.badge.danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.status {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status.pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.status.failed {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alert i {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.alert.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.alert.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .profile-content {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header .view-all {
        margin-top: 0.5rem;
    }
    
    .data-table th, .data-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* استایل‌های مربوط به صفحات ورود، ثبت‌نام و فراموشی رمز عبور */

.auth-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
    min-height: calc(100vh - 70px - 350px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 191, 170, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-remember label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-remember label input {
    margin-left: 0.5rem;
    width: auto;
}

.forgot-password {
    color: var(--secondary);
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.form-links a {
    color: var(--secondary);
    font-weight: 500;
}

.form-links a:hover {
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.required {
    color: #E53E3E;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.alert.error {
    background-color: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: #E53E3E;
}

.alert.success {
    background-color: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #48BB78;
}

.alert ul {
    padding-right: 1.5rem;
    margin: 0;
}

/* استایل خاص فیلد کد تأیید */
#code {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 5px;
    direction: ltr;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 2rem 0;
    }
    
    .form-container {
        padding: 1rem;
    }
}
.step-item {
    padding-top: 1rem !important; /* کاهش فاصله بالای آیتم */
}

.step-icon {
    margin-top: 0 !important; /* حذف مارجین بالای آیکون */
}
