/* تنظیمات پایه */
:root {
    --primary-color: #00897b; /* سبز اردیبهشتی */
    --secondary-color: #263238; /* زغالی/سرمه‌ای مالی */
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
}
* {
    font-family: 'Shabnam', sans-serif;
}

body,
input,
textarea,
button,
select {
    font-family: 'Shabnam', sans-serif;
}

.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

body {
    direction: rtl;
    font-family: 'Tahoma', sans-serif; /* در آینده فونت ایران‌یکان اضافه کنید */
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 50px; }

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
}

/* بخش Hero (بنر اصلی) */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }

/* کارت‌ها و گرید */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: -50px; /* برای اینکه کارت‌ها روی هیرو بیایند */
    padding-bottom: 50px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.card:hover { transform: translateY(-10px); }

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary { background: var(--primary-color); color: white; }



/* Dashboard Wrapper */
.dashboard-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #555;
    font-size: 15px;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Single Card */
.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* Icon Box */
.dash-icon {
    margin-bottom: 15px;
}

.dash-icon img {
    width: 55px;
    height: 55px;
    opacity: 0.9;
}

/* Titles */
.dashboard-card h3 {
    margin: 10px 0;
    font-size: 20px;
    color: var(--secondary-color);
}

.dashboard-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 0 10px;
    }
}


/* Header Base */
.main-header {
    background: #0D1321;
    color: #ECE9E9;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo img {
    height: 48px;
}

/* Desktop Menu */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 22px;
}

.nav-menu li a {
    color: #ECE9E9;
    font-weight: 500;
    transition: 0.2s;
}

.nav-menu li a:hover {
    color: #28B67E;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 26px;
    color: #ECE9E9;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-nav {
    display: none;
    background: #1D4C4F;
    padding: 20px;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav a {
    color: #ECE9E9;
    font-size: 17px;
}

.mobile-nav a:hover {
    color: #28B67E;
}

/* Responsive Rules */
@media(max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-nav.active {
        display: block;
    }
}


/* ==================== دکمه تغییر تم ==================== */
	.theme-toggle-wrapper {
		position: fixed;
		bottom: 24px;
		right: 24px;
		z-index: 9999;
	}

	.theme-toggle-btn {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 22px;
		background: var(--color-bg-card);
		border: 2px solid var(--color-accent);
		border-radius: 14px;
		cursor: pointer;
		color: var(--color-text-primary);
		font-size: 0.9rem;
		font-family: inherit;
		font-weight: 600;
		box-shadow: var(--shadow-md);
		transition: var(--transition-smooth);
		white-space: nowrap;
		min-width: 150px;
	}

	.theme-toggle-btn:hover {
		transform: translateY(-2px);
		background: var(--color-accent);
		color: #0F172A;
		border-color: var(--color-accent);
		box-shadow: var(--shadow-lg);
	}

	.theme-toggle-btn i {
		font-size: 1.1rem;
		transition: transform 0.4s ease;
		flex-shrink: 0;
	}

	.theme-toggle-btn:hover i {
		transform: rotate(30deg);
	}

	.theme-toggle-btn span {
		line-height: 1.4;
	}

	/* وضعیت دارک - نمایش آیکون ماه و متن */
	.theme-toggle-btn .dark-text { 
		display: inline-flex; 
		align-items: center;
		gap: 8px;
	}
	.theme-toggle-btn .light-text { display: none; }
	.theme-toggle-btn .fa-moon { display: inline-block; }
	.theme-toggle-btn .fa-sun { display: none; }

	/* وضعیت لایت - نمایش آیکون خورشید و متن */
	[data-theme="light"] .theme-toggle-btn .dark-text { display: none; }
	[data-theme="light"] .theme-toggle-btn .light-text { 
		display: inline-flex; 
		align-items: center;
		gap: 8px;
	}
	[data-theme="light"] .theme-toggle-btn .fa-moon { display: none; }
	[data-theme="light"] .theme-toggle-btn .fa-sun { display: inline-block; }

	/* رسپانسیو */
	@media (max-width: 768px) {
		.theme-toggle-wrapper {
			bottom: 16px;
			right: 16px;
		}
		
		.theme-toggle-btn {
			padding: 10px 16px;
			font-size: 0.82rem;
			gap: 8px;
			border-radius: 12px;
			min-width: auto;
		}
		
		.theme-toggle-btn i {
			font-size: 1rem;
		}
	}

	@media (max-width: 420px) {
		.theme-toggle-btn {
			padding: 8px 14px;
			font-size: 0.75rem;
			gap: 6px;
			border-radius: 10px;
		}
		
		/* مخفی کردن متن در موبایل‌های خیلی کوچک - فقط آیکون */
		.theme-toggle-btn .dark-text,
		.theme-toggle-btn .light-text {
			display: none !important;
		}
		
		.theme-toggle-btn .fa-moon { display: inline-block !important; }
		[data-theme="light"] .theme-toggle-btn .fa-moon { display: none !important; }
		[data-theme="light"] .theme-toggle-btn .fa-sun { display: inline-block !important; }
	}