/* ===== Variables ===== */
:root {
    --primary-color: #2c7a7b;
    --primary-dark: #235d5e;
    --primary-light: #e6fffa;
    --secondary-color: #4299e1;
    --success-color: #48bb78;
    --warning-color: #ecc94b;
    --danger-color: #f56565;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navbar ===== */
.navbar {
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--text-dark) !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background: #38a169;
    border-color: #38a169;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-header {
    background: var(--primary-light);
    border-bottom: none;
    font-weight: 600;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 100px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===== Services Grid ===== */
.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon {
    background: var(--primary-color);
    color: white;
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Therapist Card ===== */
.therapist-card .photo-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-light);
}

.therapist-card .photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.therapist-card .specializations span {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin: 2px;
}

/* ===== Testimonial Card ===== */
.testimonial-card {
    padding: 2rem;
    background: white;
}

.testimonial-card .rating {
    color: #f6ad55;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-muted);
    border-right: 3px solid var(--primary-color);
    padding-right: 1rem;
    margin: 1rem 0;
}

/* ===== Blog Card ===== */
.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-card .category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    padding: 0.7rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.1);
}

/* ===== Admin Sidebar ===== */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 0.7rem 1.2rem !important;
    border-radius: var(--radius-sm);
    margin: 2px 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* ===== Dashboard Stats ===== */
.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    color: white;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== Tables ===== */
.table-responsive {
    border-radius: var(--radius);
    overflow: hidden;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
}

/* ===== Badge ===== */
.badge-pending { background: #ecc94b; color: #744210; }
.badge-confirmed { background: #68d391; color: #22543d; }
.badge-cancelled { background: #fc8181; color: #742a2a; }
.badge-completed { background: #63b3ed; color: #2a4365; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section { padding: 50px 0; }
    .section-title h2 { font-size: 1.5rem; }
}

/* ===== Print ===== */
@media print {
    .top-bar, nav, footer, .no-print { display: none !important; }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== Workshop Card ===== */
.workshop-card .date-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 70px;
}

.workshop-card .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== Assessment ===== */
.assessment-option {
    display: block;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.assessment-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.assessment-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* ===== Appointment Calendar ===== */
.time-slot {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}