@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');
/* ===================================================================
   1. General Styles (عمومی)
   =================================================================== */
:root {
  --primary-color: #7B4BFF;
  --secondary-color: #2CD4D9;
  --dark-blue: #0A0735;
  --text-color: #5E6282;
  --heading-color: #181E4B;
  --light-bg: #F7F8FC;
  --card-shadow: 0px 18px 52.85px rgba(215, 228, 249, 0.5);
}

html { 
  scroll-behavior: smooth; 
}

body { 
  font-family: 'Vazirmatn', sans-serif; 
  overflow-x: hidden; 
  background-color: #fff; 
  color: var(--text-color); 
}

h1, h2, h3, h4, h5, h6 { 
  color: var(--heading-color); 
  font-weight: 700; 
}

p { 
  font-size: 16px; 
  line-height: 30px; 
}

.section { 
  padding: 100px 0; 
}

.section-heading { 
  text-align: center; 
  margin-bottom: 60px; 
}
.section-heading h6 { 
  color: var(--primary-color); 
  font-size: 18px; 
  font-weight: 700; 
  letter-spacing: 0.5px; 
  margin-bottom: 10px; 
}
.section-heading h2 { 
  font-size: 42px; 
  font-weight: 800; 
  line-height: 1.3; 
}

.main-button a {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff !important; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 52px; line-height: 52px; padding: 0 35px;
  border-radius: 26px; transition: all .4s ease;
  box-shadow: 0px 10px 20px rgba(123, 75, 255, 0.3);
  border: none; text-decoration: none;
}
.main-button a:hover { 
  transform: translateY(-5px); 
  box-shadow: 0px 15px 25px rgba(123, 75, 255, 0.4); 
}


/* ===================================================================
   2. Header Styles (هدر)
   =================================================================== */
.header-area {
    transition: all .4s ease;
    position: absolute; /* Changed to absolute to avoid pushing content down initially */
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}
.header-area.header-sticky {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.header-area .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}
.header-area .main-nav .logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}
.header-area .main-nav .nav {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 0;
    padding-left: 0;
}
.header-area .main-nav .nav li { list-style: none; }
.header-area .main-nav .nav li a {
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
    transition: color .3s;
}
.header-area .main-nav .nav li a:hover,
.header-area .main-nav .nav li a.active {
    color: var(--primary-color);
}
.header-area .header-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-area .header-buttons .login-btn {
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
}
.header-area .header-buttons .main-button a {
    height: 45px;
    line-height: 45px;
    padding: 0 25px;
    animation: none;
}
.menu-trigger { display: none; }

@media (max-width: 992px) {
    .header-area .main-nav .nav {
        display: none;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-radius: 0 0 20px 20px;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .header-area .main-nav .nav.active { display: flex; }
    .header-area .main-nav .nav li { width: 100%; text-align: center; }
    .header-area .main-nav .nav li a { display: block; padding: 15px; }
    .header-area .header-buttons { display: none; }
    .menu-trigger {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 25px;
        position: relative;
    }
    .menu-trigger span, .menu-trigger span:before, .menu-trigger span:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--dark-blue);
        border-radius: 3px;
        transition: all .3s;
    }
    .menu-trigger span { top: 50%; transform: translateY(-50%); }
    .menu-trigger span:before { top: -10px; }
    .menu-trigger span:after { top: 10px; }
}

/* ===================================================================
   3. Main Content Styles (محتوای اصلی)
   =================================================================== */
/* Styles for main-banner, how-it-works, testimonials, pricing, etc. */
.main-banner { background-color: #F7F8FC; padding: 180px 0 100px 0; position: relative; overflow: hidden; }
/* ... سایر استایل‌های بخش‌های اصلی که داشتید ... */


/* ===================================================================
   4. Footer Styles (فوتر)
   =================================================================== */
footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
    text-align: center;
}
footer .logo-footer {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}
footer .footer-socials a {
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
    transition: color .3s;
}
footer .footer-socials a:hover {
    color: var(--secondary-color);
}
footer .copyright {
    margin-top: 20px;
    font-size: 14px;
}
:root {
    --primary-color: #5e72e4;
    --secondary-color: #f7fafc;
    --background-color: #f6f9fc;
    --text-color: #525f7f;
    --card-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15);
    --input-shadow: 0 1px 3px rgba(50, 50, 93, .15), 0 1px 0 rgba(0, 0, 0, .02);
}

body {
    background-color: var(--background-color);
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Login & Register Pages --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0 50px rgba(0,0,0,0.15);
    background-color: var(--secondary-color);
    animation: fadeIn 0.5s ease-out;
}
.auth-card .card-header {
    background-color: transparent;
    border-bottom: none;
    padding-top: 2rem;
    padding-bottom: 0;
}
.auth-card .card-body {
    padding: 2rem;
}

/* --- General Components --- */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease-in-out;
}
.animated-card {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
}
.form-control, .form-select {
    border-radius: 0.375rem;
    box-shadow: var(--input-shadow);
    transition: all 0.2s ease-in-out;
    border-color: #dee2e6;
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
}
.btn {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.btn-primary {
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
}

/* --- User Dashboard --- */
.user-dashboard-header {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}
input[readonly] {
    background-color: #e9ecef !important;
    cursor: default;
}

/* --- Admin Dashboard --- */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #172b4d 0, #1a174d 100%);
    color: white;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    z-index: 100;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.85rem 1.25rem;
    border-right: 3px solid transparent;
}
.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar .nav-link.active {
    color: white;
    font-weight: bold;
    border-right-color: var(--primary-color);
}
.main-content {
    margin-right: 250px;
    padding: 30px;
}
.stat-card { border-left: 4px solid; }
.stat-card.primary { border-left-color: #5e72e4; }
.stat-card.success { border-left-color: #2dce89; }
.stat-card.warning { border-left-color: #fb6340; }
.text-primary-light, .text-success-light, .text-warning-light { color: #cad1e8 !important; }

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* ================================================= */
/*   بخش استایل‌های کارت سه‌بعدی گزارش روز (جدید)     */
/* ================================================= */

/* نگهدارنده اصلی کارت با قابلیت پرسپکتیو برای افکت 3D */
.report-card-flipper {
    background-color: transparent;
    width: 100%;
    height: 450px; /* ارتفاع کارت را می‌توانید تنظیم کنید */
    perspective: 1000px; /* عمق افکت 3D */
    cursor: pointer;
}

/* این بخش داخلی است که انیمیشن چرخش روی آن اعمال می‌شود */
.report-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 8px 25px rgba(0, 4, 46, 0.1);
    border-radius: 1rem;
}

/* کلاس is-flipped که با جاوااسکریپت اضافه می‌شود تا کارت بچرخد */
.report-card-flipper.is-flipped .report-card-inner {
    transform: rotateY(180deg);
}

/* استایل مشترک برای هر دو طرف کارت (رو و پشت) */
.report-card-front, .report-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* برای Safari */
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    color: white;
}

/* --- استایل روی کارت (Front) --- */
.report-card-front {
    /* استفاده از متغیرهای رنگ اصلی سایت شما */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    justify-content: space-between; /* تغییر چیدمان برای تاریخ جدید */
    padding: 2rem;
    text-align: right;
}

.report-card-front .date-display {
    font-size: 1.7rem;
    font-weight: 300;
}

.report-card-front .day-name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.report-card-front .click-prompt {
    position: absolute;
    bottom: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.report-card-front .click-prompt i {
    vertical-align: middle;
    margin-right: 5px;
}

/* --- استایل پشت کارت (Back) --- */
.report-card-back {
    background-color: #ffffff;
    color: #333;
    transform: rotateY(180deg); /* پشت کارت در ابتدا برعکس است */
    padding: 1.5rem;
    text-align: right;
    overflow-y: auto; /* اسکرول در صورت کمبود جا */
}

.report-card-back h5 {
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.2);
    padding-bottom: 0.5rem;
}
.report-card-back h5 i {
    margin-left: 0.5rem;
}

.report-card-back .back-section {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.report-card-back .back-section:last-child {
    margin-bottom: 0;
}

.report-card-back .back-section strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #555;
}
.report-card-back .back-section span {
    color: #6c757d;
}

/* استایل اختصاصی برای اوقات شرعی در پشت کارت */
.prayer-list-back {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.prayer-list-back li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.prayer-list-back li:last-child {
    border-bottom: none;
}
.prayer-list-back .time {
    font-weight: 500;
    direction: ltr;
}
.front-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
}
/* استایل بخش مرکزی کارت (روز هفته و عدد روز) */
.front-main {
    text-align: center;
}
.front-main .day-name {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.front-main .day-number {
    font-size: 4rem;
    font-weight: 200; /* فونت نازک برای زیبایی */
    line-height: 1;
}

/* استایل بخش پایینی کارت (ماه و سال شمسی) */
.front-footer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

