@font-face {
          font-family: 'Peyda100';
          src: url('../fonts/PeydaWebFaNum-Thin.4dc9791976a333b36501.woff2') format('woff2');
          font-weight: 100;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda200';
          src: url('../fonts/PeydaWebFaNum-ExtraLight.cb12d7d5e9d6131c285f.woff') format('woff');
          font-weight: 200;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda300';
          src: url('../fonts/PeydaWebFaNum-Light.e5c4aa2be8084a7fd345.woff2') format('woff2');
          font-weight: 300;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda400';
          src: url('../fonts/PeydaWebFaNum-Regular.a85fc388413d6fb2707b.woff2') format('woff2');
          font-weight: 400;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda500';
          src: url('../fonts/PeydaWebFaNum-Medium.5ae94427bffc3c292a70.woff') format('woff');
          font-weight: 500;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda600';
          src: url('../fonts/PeydaWebFaNum-SemiBold.bee880ae22ea6f0f046e.woff') format('woff');
          font-weight: 600;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda700';
          src: url('../fonts/PeydaWebFaNum-Bold.2106f9398d9799d35d55.woff2') format('woff2');
          font-weight: 700;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda800';
          src: url('../fonts/PeydaWebFaNum-ExtraBold.5d0e4f0b138c23493636.woff') format('woff');
          font-weight: 800;
          font-style: normal;
        }
        @font-face {
          font-family: 'Peyda900';
          src: url('../fonts/PeydaWebFaNum-Black.ce8ffc88f1303a4ed135.woff') format('woff');
          font-weight: 900;
          font-style: normal;
        }

/* CSS Variables */
:root {
    --primary-color: #00897b;
    --primary-dark: #016359;
    --secondary-color: #2196F3;
    --accent-color: #74b9ff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --error-color: #e74c3c;
    --warning-color: #e2b83e;
    --success-color: #00897b;
    --info-color: #2196F3;
    
    --gradient-primary: linear-gradient(135deg, #00897b, #016359);
    --gradient-secondary: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-accent: linear-gradient(135deg, #74b9ff, #0984e3);
    
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    
    --border-radius: 15px;
    --border-radius-small: 10px;
    --border-radius-large: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    --z-loading: 9999;
    --z-toast: 99999;
    --z-modal: 9997;
    --z-bottom-nav: 1000;
    --z-header: 999;
      -webkit-user-select: none; /* برای Safari و iOS */
  -ms-user-select: none;     /* برای IE */
  user-select: none;    
  -webkit-touch-callout: none;


}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Peyda400', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    direction: rtl;
    background: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2 {
    font-family: 'Peyda900', sans-serif;
    font-weight: 900;
    line-height: 1.2;
}

h3, h4 {
    font-family: 'Peyda700', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h5, h6 , span , div{
    font-family: 'Peyda400', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-family: 'Peyda300', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

strong, b {
    font-family: 'Peyda800', sans-serif;
    font-weight: 800;
}

em {
    font-family: 'Peyda200', sans-serif;
    font-weight: 200;
    font-style: normal;
}

a {
    font-family: 'Peyda500', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

small, .caption {
    font-family: 'Peyda100', sans-serif;
    font-weight: 100;
    font-size: 0.875rem;
}

button, input, textarea, select {
    font-family: 'Peyda600', sans-serif;
    font-weight: 600;
}

/* ===========================================
   LOADING SCREEN
   =========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 90%;
 
    margin-bottom: 2rem;
}

.loading-spinner {
width: 40px;
    height: 40px;
    border: 3px solid var(--text-secondary);
    border-top: 3px solid var(--text-primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s 
linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--text-primary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   LOGIN SCREEN
   =========================================== */
.login-screen {
    display: none;
    flex-direction: column;
    height: 100vh;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" fill="none"><path d="M0,64L48,74.7C96,85,192,107,288,112C384,117,480,107,576,90.7C672,75,768,53,864,58.7C960,64,1056,96,1152,101.3L1200,107L1200,0L1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

.login-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.app-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.app-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-logo i {
    font-size: 2.5rem;
    color: white;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.login-container {
    flex: 1;
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 2rem;
    margin-top: auto;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    min-height: 50%;
}

.login-step {
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.login-step.hidden {
    display: none;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.phone-display {
    background: var(--background-light);
    padding: 1rem;
    border-radius: var(--border-radius-small);
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Peyda600', sans-serif;
    color: var(--primary-color);
    border: 2px solid rgba(39, 174, 96, 0.2);
}

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

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
    text-align: center;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
    font-family: 'Peyda300', sans-serif;
}

.form-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 1;
}

.form-input:focus + .form-icon {
    color: var(--primary-color);
}

.login-btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.login-btn.loading .btn-text,
.login-btn.loading i {
    display: none;
}

.login-btn.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.resend-section {
    text-align: center;
    margin-top: 1.5rem;
}

.resend-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
}

.resend-btn:hover:not(:disabled) {
    background: rgba(39, 174, 96, 0.1);
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-timer {
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===========================================
   SUCCESS SCREEN
   =========================================== */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.success-screen.hidden {
    display: none;
}

.success-content {
    text-align: center;
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

.success-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===========================================
   DASHBOARD SCREEN
   =========================================== */
.dashboard-screen {
    display: none;
    height: 100vh;
    background: var(--background-light);
    padding-bottom: 80px;
}

.dashboard-screen.active {
    display: block;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    padding: 1rem;
    box-shadow: var(--box-shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    margin: 5px;
    margin-bottom: 0px;
    border-radius: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.support-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 12px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: #e67e22;
    transform: scale(1.05);
}


.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--box-shadow-light);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.user-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.2;
}

.notification-btn {
    background: var(--background-light);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.score-btn {
    background: var(--background-light);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius-small);
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.notification-btn:hover {
    background: rgba(39, 174, 96, 0.1);
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background: var(--error-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Dashboard Content */
.dashboard-content {
    padding: 1rem;
    overflow-y: auto;
    height: calc(100vh - 140px);
}

.dashboard-page {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.dashboard-page.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
    box-shadow: var(--box-shadow-light);
}

.stat-icon.patients {
    background: var(--gradient-primary);
}

.stat-icon.completed {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-icon.studies {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Section Titles */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--primary-color);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 1.5rem;
}

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

.action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 174, 96, 0.1), transparent);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(39, 174, 96, 0.2);
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.action-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.action-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.action-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    border-right: 4px solid transparent;
}

.activity-item:hover {
    background: rgba(39, 174, 96, 0.05);
    border-right-color: var(--primary-color);
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.new {
    background: var(--gradient-primary);
}

.activity-icon.completed {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.activity-icon.updated {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* ===========================================
   BOTTOM NAVIGATION
   =========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: var(--z-bottom-nav);
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 10px 10px;
    opacity: 0.7;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.75rem 0.5rem;
    border-radius: var(--border-radius-large);
    position: relative;
    min-width: 60px;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary-color);
    transform: scale(1.05);
}

.nav-item.active .nav-icon-container {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    transform: translateY(-8px);
}

.nav-item.active .nav-icon {
    color: white;
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(-2px);
}

.nav-item:hover:not(.active) {
    color: var(--primary-color);
    transform: scale(1.02);
}

.nav-item:hover:not(.active) .nav-icon-container {
    background: rgba(39, 174, 96, 0.1);
    transform: translateY(-3px);
}

.nav-icon-container {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: var(--transition);
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.nav-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.nav-item.active .nav-icon-container::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.nav-icon {
    font-size: 1.3rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    line-height: 1;
}

/* Active indicator dot */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 0.6s ease-out;
}

/* Notification badge for nav items */
.nav-item .nav-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error-color);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
    border-radius: 8px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--box-shadow-hover);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
    border-right: 4px solid var(--success-color);
}

.toast.error {
    border-right-color: var(--error-color);
}

.toast.warning {
    border-right-color: var(--warning-color);
}

.toast.info {
    border-right-color: var(--info-color);
}

.toast-icon {
    font-size: 1.2rem;
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--error-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--info-color);
}

.toast-message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

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

/* ===========================================
   LISTS & CARDS
   =========================================== */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--background-light);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.card-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--background-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 1000px;
}

.history-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-right: 4px solid transparent;
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    border-right-color: var(--primary-color);
}

.history-item.incomplete {
    border-right-color: var(--warning-color);
}

.history-item.complete {
    border-right-color: var(--success-color);
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.patient-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.history-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.history-status.incomplete {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.history-status.complete {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.history-status.reviewed {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--background-light);
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-secondary);
    border: 1px solid #e9ecef;
}

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

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-light);
}

/* ===========================================
   SEARCH & FILTERS
   =========================================== */
.search-container {
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-tab {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab.active {
    background: var(--gradient-primary) !important;
    color: white;
    border-color: transparent;
}

.filter-tab:hover:not(.active) {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--primary-color);
}

/* ===========================================
   PROFILE PAGE
   =========================================== */
.profile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin: -1rem -1rem 1.5rem -1rem;
    border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.camera-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-info {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.edit-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
}

.edit-btn:hover {
    background: rgba(39, 174, 96, 0.1);
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.subscription-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.subscription-plan {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.subscription-status {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.upgrade-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}

/* ===========================================
   FORMS
   =========================================== */
.form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: var(--error-color);
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--background-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-control.error {
    border-color: var(--error-color);
    background: rgba(231, 76, 60, 0.05);
}

.form-error {
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-secondary);
    border: 1px solid #e9ecef;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { 
        transform: translateX(-100%); 
    }
    100% { 
        transform: translateX(100%); 
    }
}

/* ===========================================
   UTILITIES
   =========================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-error { color: var(--error-color); }
.text-warning { color: var(--warning-color); }

.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--text-secondary); }
.bg-light { background: var(--background-light); }
.bg-white { background: white; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        border-radius: 25px 25px 0 0;
    }
    
    .stats-grid {
       
        gap: 0.75rem;
    }
    
    .actions-grid {
        
        gap: 0.75rem;
    }
    
    .dashboard-content {
        padding: 0.75rem;
        padding-bottom: 100px;
    }
    
    .bottom-nav {
        padding: 0.25rem 0.5rem 0.75rem;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 0.5rem 0.25rem;
    }
    
    .nav-icon-container {
        width: 40px;
        height: 40px;
        border-radius: var(--border-radius-small);
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .toast-container {
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .toast {
        max-width: none;
    }
    
    .profile-header {
        padding: 1.5rem 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 375px) {
    .app-title {
        font-size: 1.6rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .card,
    .profile-section,
    .form-container {
        padding: 1rem;
    }
}


@media print {
     body,
    html {
        display: none
    }
    .bottom-nav,
    .dashboard-header .notification-btn,
    .btn,
    .action-card {
        display: none !important;
    }
    
    .dashboard-content {
        padding: 0;
        height: auto;
    }
    
    .card,
    .history-item {
        box-shadow: none;
        border: 1px solid #e9ecef;
        break-inside: avoid;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: -15px;
    background: var(--background-light);
    z-index: 10;
}



.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--hover-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select , 
.form-group textarea{
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ececec;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.body.modal-open {
    overflow: hidden;
}

/* Educational Grid Styles */
.educational-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.educational-row {
    display: flex;
    gap: 1rem;
}

.educational-card {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.educational-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.educational-card.half-width {
    flex: 1;
}

.educational-card.full-width {
    width: 100%;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    flex-shrink: 0;
}

.card-icon.ai {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.card-icon.challenge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-stats i {
    margin-right: auto;
    color: var(--primary-color);
}

.feature-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.challenge-today {
    background: #f39c12;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .educational-row {
        flex-direction: column;
    }
    
    .educational-card.half-width {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
      
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* Promotional Slider */
.promo-slider {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.slider-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
}

.slide-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.slide-content p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Compact Stats Grid */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card-mini {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.stat-icon-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.stat-info {
    text-align: center;
}

.stat-info .stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-info .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Enhanced Actions Grid */
.quick-actions-enhanced {
    margin-bottom: 1.5rem;
}

.actions-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.action-card-enhanced {

    border-radius: var(--border-radius);
    padding: 0.5rem;
    text-align: center;
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.action-card-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.action-card-enhanced.primary:hover {
    border-color: var(--primary-color);
}

.action-card-enhanced.secondary:hover {
    border-color: var(--info-color);
}

.action-card-enhanced.accent:hover {
    border-color: #9b59b6;
}

.action-card-enhanced.warning:hover {
    border-color: var(--warning-color);
}

.action-card-enhanced.info:hover {
    border-color: var(--info-color);
}

.action-card-enhanced.success:hover {
    border-color: var(--success-color);
}

.action-icon-enhanced {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.action-card-enhanced.secondary .action-icon-enhanced {
    color: var(--info-color);
}

.action-card-enhanced.accent .action-icon-enhanced {
    color: #9b59b6;
}

.action-card-enhanced.warning .action-icon-enhanced {
    color: var(--warning-color);
}

.action-card-enhanced.info .action-icon-enhanced {
    color: var(--info-color);
}

.action-card-enhanced.success .action-icon-enhanced {
    color: var(--success-color);
}

.action-content-enhanced h4 {
    font-size: 0.8rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.action-content-enhanced p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Compact Activity List */
.activity-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--box-shadow-light);
}

.activity-item-compact:hover {
    box-shadow: var(--box-shadow);
    transform: translateX(-3px);
}

.activity-icon-compact {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-info-compact {
    flex: 1;
}

.activity-title-compact {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activity-meta-compact span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.7rem;
}

.status-badge.complete {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status-badge.incomplete {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.activity-arrow {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Compact History Items */
.history-item-compact {
    background: white;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
   
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    border-right: 3px solid transparent;
    cursor: pointer;
}

.history-item-compact:hover {
    box-shadow: var(--box-shadow);
    transform: translateX(-2px);
}

.history-item-compact.incomplete {
    border-right-color: var(--warning-color);
}

.history-item-compact.complete {
    border-right-color: var(--success-color);
}

.history-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.history-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
}

.patient-name-compact {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.history-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.history-meta-compact span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.history-status-badge.incomplete {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.history-status-badge.complete {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.history-status-badge.reviewed {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.history-actions-compact {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.btn-icon.btn-primary {
    background: rgba(39, 174, 96, 0.1);
    color: var(--primary-color);
}

.btn-icon.btn-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

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

.btn-icon:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promo-slider .slider-container {
        height: 250px;
    }
}




/* برای همه مرورگرها */
body {
  overflow: auto;
}

/* پنهان کردن اسکرول برای Chrome, Safari و Edge */
body::-webkit-scrollbar {
  display: none;
}

/* پنهان کردن اسکرول برای Firefox */
body {
  scrollbar-width: none;
}


/* Theme Selector Styles */
.theme-selector-container {
    grid-column: 1 / -1;
}

.theme-selector {
    display: flex;
    gap: 0.5rem;
    background: var(--background-light);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.theme-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.theme-option i {
    font-size: 1.5rem;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-light);
}

.theme-option.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(39, 174, 96, 0.05);
}

.theme-option.active i {
    color: var(--primary-color);
}

/* Force Dark Mode */
body[data-theme="dark"] {
     --primary-color: #00897b;
    --primary-dark: #016359;
    --secondary-color: #2196F3;
    --accent-color: #74b9ff;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --background-light: #1a1d23;
    --white: #242830;
    --error-color: #ef5350;
    --warning-color: #e2b83e;
    --success-color: #00897b;
    --info-color: #2196F3;
    
    --gradient-primary: linear-gradient(135deg, #00897b, #016359);
    --gradient-secondary: linear-gradient(135deg, #a29bfe, #6c5ce7);
    --gradient-accent: linear-gradient(135deg, #74b9ff, #0984e3);
    
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --box-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    --border-color: #2d3139;
    --hover-color: #2d3139;
}

/* Base Styles */
body[data-theme="dark"] {
    background: #0f1115 !important;
    color: #e8eaed !important;
}

/* Loading Screen */
body[data-theme="dark"] .loading-screen {
    background: linear-gradient(135deg, #1a1d23, #0f1115) !important;
}

/* Login Screen */

body[data-theme="dark"] .login-container {
    background: #1a1d23 !important;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5) !important;
}

body[data-theme="dark"] .form-input {
    background: #242830 !important;
    border-color: #2d3139 !important;
    color: #e8eaed !important;
}

body[data-theme="dark"] .form-input:focus {
    background: #2d3139 !important;
    border-color: #016359 !important;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2) !important;
}

body[data-theme="dark"] .form-input::placeholder {
    color: #5f6368 !important;
}

body[data-theme="dark"] .phone-display {
    background: #242830 !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
}

/* Success Screen */
body[data-theme="dark"] .success-screen {
    background: var(--gradient-primary) !important;
}

/* Dashboard */
body[data-theme="dark"] .dashboard-screen {
    background: #0f1115 !important;
}

body[data-theme="dark"] .dashboard-header {
    background: #1a1d23 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .notification-btn,
body[data-theme="dark"] .score-btn {
    background: #242830 !important;
    color: #9aa0a6 !important;
}

body[data-theme="dark"] .notification-btn:hover,
body[data-theme="dark"] .score-btn:hover {
    background: #2d3139 !important;
    color: #016359 !important;
}



body[data-theme="dark"] .support-btn:hover {
    background: #6c5ce7 !important;
}

/* Stats Cards */
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .stat-card-mini {
    background: #1a1d23 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .stat-card:hover,
body[data-theme="dark"] .stat-card-mini:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-color: #3d4149 !important;
}

/* Action Cards */
body[data-theme="dark"] .action-card,
body[data-theme="dark"] .action-card-enhanced {
    background: #1a1d23 !important;
    border: 2px solid #2d3139 !important;
}

body[data-theme="dark"] .action-card:hover,
body[data-theme="dark"] .action-card-enhanced:hover {
    background: #242830 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Educational Cards */
body[data-theme="dark"] .educational-card {
    background: #1a1d23 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .educational-card:hover {
    background: #242830 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Recent Activity */
body[data-theme="dark"] .recent-activity,
body[data-theme="dark"] .card,
body[data-theme="dark"] .profile-section,
body[data-theme="dark"] .form-container {
    background: #1a1d23 !important;
    border: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .activity-item,
body[data-theme="dark"] .activity-item-compact {
    background: #242830 !important;
    border-right-color: #2d3139 !important;
}

body[data-theme="dark"] .activity-item:hover,
body[data-theme="dark"] .activity-item-compact:hover {
    background: #2d3139 !important;
}

/* History Items */
body[data-theme="dark"] .history-item,
body[data-theme="dark"] .history-item-compact {
    background: #1a1d23 !important;
    border: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .history-item:hover,
body[data-theme="dark"] .history-item-compact:hover {
    background: #242830 !important;
}

/* Bottom Navigation */
body[data-theme="dark"] .bottom-nav {
    background: #1a1d23 !important;
    border-top: 1px solid #2d3139 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
}

body[data-theme="dark"] .nav-item.active .nav-icon-container {
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3) !important;
}

/* Promotional Slider */
body[data-theme="dark"] .promo-slider {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="dark"] .slide-content {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent) !important;
}

/* Modals */
body[data-theme="dark"] .modal {
    background: rgba(0, 0, 0, 0.8) !important;
}

body[data-theme="dark"] .modal-content {
    background: #1a1d23 !important;
    border: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .modal-header,
body[data-theme="dark"] .modal-footer {
    border-color: #2d3139 !important;
}

body[data-theme="dark"] .modal-close:hover {
    background: #242830 !important;
}

/* Forms */
body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group select,
body[data-theme="dark"] .form-group textarea,
body[data-theme="dark"] .form-control {
    background: #242830 !important;
    border-color: #2d3139 !important;
    color: #e8eaed !important;
}

body[data-theme="dark"] .form-group input:focus,
body[data-theme="dark"] .form-group select:focus,
body[data-theme="dark"] .form-group textarea:focus,
body[data-theme="dark"] .form-control:focus {
    background: #2d3139 !important;
    border-color: #016359 !important;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2) !important;
}

body[data-theme="dark"] .form-control.error {
    border-color: #ef5350 !important;
    background: rgba(239, 83, 80, 0.1) !important;
}

/* Search */
body[data-theme="dark"] .search-input {
    background: #242830 !important;
    border-color: #2d3139 !important;
    color: #e8eaed !important;
}

body[data-theme="dark"] .search-input:focus {
    background: #2d3139 !important;
    border-color: #016359 !important;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2) !important;
}

/* Filter Tabs */
body[data-theme="dark"] .filter-tab {
    background: #242830;
    border-color: #2d3139 !important;
    color: #9aa0a6 !important;
}

body[data-theme="dark"] .filter-tab:hover:not(.active) {
    background: #2d3139 !important;
    border-color: #016359 !important;
}

/* Profile */
body[data-theme="dark"] .profile-header {
    background: var(--gradient-primary) !important;
}

/* Toast Notifications */
body[data-theme="dark"] .toast {
    background: #1a1d23 !important;
    border: 1px solid #2d3139 !important;
}

body[data-theme="dark"] .toast-close:hover {
    background: #242830 !important;
}

/* Buttons */
body[data-theme="dark"] .btn-secondary {
    background: #242830 !important;
    border-color: #2d3139 !important;
    color: #e8eaed !important;
}

body[data-theme="dark"] .btn-secondary:hover {
    background: #2d3139 !important;
}

body[data-theme="dark"] .btn-icon.btn-secondary {
    background: #242830 !important;
}



body[data-theme="dark"] .status-badge.incomplete,
body[data-theme="dark"] .history-status-badge.incomplete {
    background: rgba(255, 167, 38, 0.2) !important;
}



/* Card Headers & Footers */
body[data-theme="dark"] .card-header,
body[data-theme="dark"] .card-footer {
    border-color: #2d3139 !important;
}

/* Empty State */
body[data-theme="dark"] .empty-state i {
    opacity: 0.3 !important;
}

/* Utility Classes */
body[data-theme="dark"] .bg-light {
    background: #242830 !important;
}

body[data-theme="dark"] .bg-white {
    background: #1a1d23 !important;
}

/* Icon Buttons in Dark Mode */
body[data-theme="dark"] .btn-icon.btn-primary {
    background: rgb(46 204 113 / 7%) !important
}

body[data-theme="dark"] .btn-icon.btn-info {
    background: rgba(66, 165, 245, 0.2) !important;
}

/* Theme Selector in Dark Mode */
body[data-theme="dark"] .theme-selector {
    background: #242830 !important;
}

body[data-theme="dark"] .theme-option {
    background: #1a1d23 !important;
    border-color: #2d3139 !important;
    color: #9aa0a6 !important;
}

body[data-theme="dark"] .theme-option.active {
    background: rgba(46, 204, 113, 0.15) !important;
    border-color: #016359 !important;
    color: #016359 !important;
}

body[data-theme="dark"] .theme-option.active i {
    color: #016359 !important;
}

/* Scrollbar Styling for Dark Mode */
body[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1d23;
}

body[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #2d3139;
    border-radius: 4px;
}

body[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #3d4149;
}

/* Force Light Mode */
body[data-theme="light"] {
    --primary-color: #00897b;
    --primary-dark: #016359;
    --secondary-color: #2196F3;
    --accent-color: #74b9ff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --error-color: #e74c3c;
    --warning-color: #e2b83e;
    --success-color: #00897b;
    --info-color: #2196F3;
    
    --gradient-primary: linear-gradient(135deg, #00897b, #016359);
    --gradient-secondary: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-accent: linear-gradient(135deg, #74b9ff, #0984e3);
    
    background: #f8f9fa !important;
    color: #2c3e50 !important;
}

body[data-theme="light"] .dashboard-screen {
    background: #f8f9fa !important;
}

body[data-theme="light"] .dashboard-header,
body[data-theme="light"] .bottom-nav,
body[data-theme="light"] .card,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .action-card,
body[data-theme="light"] .history-item,
body[data-theme="light"] .modal-content,
body[data-theme="light"] .profile-section,
body[data-theme="light"] .activity-item,
body[data-theme="light"] .activity-item-compact,
body[data-theme="light"] .history-item-compact,
body[data-theme="light"] .educational-card {
    background: white !important;
    border-color: #e9ecef !important;
}

body[data-theme="light"] .form-input,
body[data-theme="light"] .search-input,
body[data-theme="light"] .form-control,
body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group select,
body[data-theme="light"] .form-group textarea {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #2c3e50 !important;
}

body[data-theme="light"] .notification-btn,
body[data-theme="light"] .score-btn,
body[data-theme="light"] .filter-tab {
    background: #f8f9fa !important;
    color: #7f8c8d !important;
}

body[data-theme="light"] .theme-selector {
    background: #f8f9fa !important;
}

body[data-theme="light"] .theme-option {
    background: white !important;
    border-color: #e9ecef !important;
}

body[data-theme="light"] .theme-option.active {
    background: rgba(39, 174, 96, 0.05) !important;
    border-color: #00897b !important;
    color: #00897b !important;
}
.unselectable {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}
/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00897b, #016359);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.explanation-title-bold {
    font-weight: bold;
    color: #d9534f; /* یا رنگ دلخواه */
    display: block;
   
}
.explanation-title-main {
    font-weight: bold;
    background: #fef5e7;
    border-right: 4px solid #f1c40f;
   
    
}
    
*::-webkit-scrollbar {
    display: none !important;
}
* {
    scrollbar-width: none !important; 
    -ms-overflow-style: none !important; 
}
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
}

.ref {
  font-size: 0.7em;
  color: #6c757d;       /* خاکستری ملایم */
  font-weight: normal;
  margin-right: 2px;
  margin-left: 2px;
  vertical-align: super;
  cursor: default;
}

.ref:hover {
  color: #343a40;       /* کمی تیره‌تر هنگام hover */
}
