/* =============================================
   فای3 استایل - دفتر کلاسی هوشمند ترنم (نسخه 3.2)
   ============================================= */

/* -------------------------------------------
   1. فونت‌ها و متغیرهای اصلی
   ------------------------------------------- */
@font-face { font-family: 'Vazir FD'; src: url('fonts/Vazir-Regular-FD.ttf') format('truetype'); }
@font-face { font-family: 'Material Symbols Outlined'; font-style: normal; font-weight: 400; src: url('fonts/material-symbols.woff2') format('woff2'); }
:root { --primary-color: #27ae60; --primary-color-dark: #229954; --secondary-color: #3498db; --warning-color: #f39c12; --danger-color: #e74c3c; --info-color: #8e44ad; --dark-color: #34495e; --background-color: #f4f7f9; --card-background: #ffffff; --text-color: #2c3e50; --text-color-light: #7f8c8d; --border-color: #eaecf1; --header-font: 'Vazir FD', sans-serif; --body-font: 'Vazir FD', sans-serif; }

/* -------------------------------------------
   2. استایل‌های عمومی و پایه
   ------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: var(--body-font); background-color: #477e6140; color: var(--text-color); direction: rtl; line-height: 1.6; }
.container { max-width: 1800px; margin: 0 auto; padding: 15px; }
a { color: #3498db; text-decoration: none; transition: color 0.2s; font-weight: bold; }
a:hover { color: #27ae60; text-decoration: none; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; vertical-align: -5px; margin-inline-end: 4px; }
.required { color: var(--danger-color); }

/* -------------------------------------------
   3. کامپوننت‌های عمومی
   ------------------------------------------- */
/* --- کارت‌ها --- */
.card { background-color: var(--card-background); border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); overflow: hidden; }
.card-header { padding: 15px 20px; font-weight: bold; font-size: 1.1rem; border-bottom: 3px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.card-header > div:first-child { display: flex; align-items: center; gap: 10px; }
.card-body { padding: 20px; }
.card-body.no-padding { padding: 0; }

/* --- جداول --- */
.table-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 15px; text-align: center; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
thead th { background-color: #f9fafb; font-weight: bold; color: var(--text-color-light); border-bottom-width: 2px; border-bottom-color: var(--border-color); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: #f5f8fa; }

/* --- دکمه‌های آیکون --- */
.edit-icon-btn, .action-icon-btn, .delete-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--text-color-light); background: none; border: none; cursor: pointer; transition: all 0.2s; padding: 0; }
.edit-icon-btn:hover, .action-icon-btn.edit:hover { background-color: #eaf5fb; color: #3498db; }
.action-icon-btn.delete:hover, .delete-icon-btn:hover { background-color: #fdedec; color: #e74c3c; }
.action-icon-btn.change-pass:hover { background-color: #fef9e7; color: #f39c12; }
.edit-icon-btn .material-symbols-outlined, .action-icon-btn .material-symbols-outlined, .delete-icon-btn .material-symbols-outlined { font-size: 18px; margin: 0; }

/* --- پیام‌ها --- */
.message { padding: 15px; margin-bottom: 20px; border-radius: 8px; border: 1px solid; font-weight: bold; }
.message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.message.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* -------------------------------------------
   4. استایل داشبورد
   ------------------------------------------- */
.main-header-card .card-body { padding: 10px 20px; }
.main-content-area { display: flex; flex-direction: column; gap: 20px; }
.header-content { display: flex; align-items: center; gap: 15px; width: 100%; }
.header-content h1 { font-size: 1.3rem; }
.main-actions-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 20px; }
.user-info { margin-right: auto; display: flex; align-items: center; gap: 15px; white-space: nowrap; }
.logout-link { display: inline-flex; align-items: center; gap: 5px; background-color: #fdedec; color: #c0392b; padding: 6px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; border: 1px solid #f5b7b1; transition: all 0.2s ease; }
.logout-link:hover { background-color: #e74c3c; color: white; text-decoration: none; box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4); }
.logout-link .material-symbols-outlined { font-size: 18px; }
.toolbar-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid; text-decoration: none; transition: all 0.2s ease; }
.toolbar-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.toolbar-btn .material-symbols-outlined { margin: 0; font-size: 20px; vertical-align: middle; }
.toolbar-btn.btn-orange { background-color: #fdf3e9; color: #e67e22; border-color: #fadcb9; }
.toolbar-btn.btn-purple { background-color: #f4ecf7; color: var(--info-color); border-color: #d7bde2; }
.toolbar-btn.btn-red { background-color: #fdedec; color: var(--danger-color); border-color: #f5b7b1; }
.toolbar-btn.btn-green { background-color: #dcf6db; color: #248f4a; border-color: #90cba0; }
.date-time-card { background: linear-gradient(135deg, #2e7f2c, #29a7b9); color: white; text-align: center; }
#current-date { font-size: 1.5rem; font-weight: bold; }
#current-time { font-family: var(--body-font); font-size: 3.5rem; font-weight: bold; letter-spacing: 1px; direction: ltr; margin: 10px 0; display: block; }
.extra-info-bar { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; font-size: 0.9rem; justify-content: center; }
.info-item { display: flex; align-items: center; justify-content: center; gap: 8px; background-color: rgba(0,0,0,0.15); padding: 8px 12px; border-radius: 20px; }
.info-item.today-birthday { background-color: #f1c40f; color: #333; font-weight: bold; animation: pulse-yellow 2s infinite; }
@keyframes pulse-yellow { 0% { box-shadow: 0 0 0 0 rgba(241,196,15,0.7); } 70% { box-shadow: 0 0 0 10px rgba(241,196,15,0); } 100% { box-shadow: 0 0 0 0 rgba(241,196,15,0); } }
.notice-card ul { list-style: none; padding: 0; }
.notice-card li { padding: 8px 0; border-bottom: 1px dashed var(--border-color); font-size: 14px; }
.notice-card li:last-child { border-bottom: none; }
.program-info-card .card-body { text-align: center; padding: 20px; font-size: 0.9rem; color: var(--text-color-light); }
.program-info-card .heart { color: var(--danger-color); display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.quote-card-body { text-align: center; padding: 30px 20px; }
.quote-card-body .quote-text { font-size: 15px; font-weight: bold; color: #8e44ad; line-height: 1.7; display: block; margin: 0; }
.quote-card-body .quote-author { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 1rem; color: #c598d8; font-style: normal; }
.student-list-card > .card-header { background-color: #eaf5fb; color: #3498db; border-color: #aed6f1; }
.schedule-card > .card-header { background-color: #e9f7ef; color: #27ae60; border-color: #a9dfbf; }
#bookmarks-card > .card-header { background-color: #e8f6f3; color: #16a085; border-color: #a3e4d7; }
.quotes-card > .card-header { background-color: #f4ecf7; color: #8e44ad; border-color: #d7bde2; }
.budget-table-card > .card-header { background-color: #fef9e7; color: #ff9c00; border-color: #f39c12; }
.notice-board-card > .card-header { background-color: #fef9e7; color: var(--warning-color); border-color: var(--warning-color); }
.teacher-tools-card > .card-header { background-color: #e0f2f1; color: #00796b; border-color: #b2dfdb; }
.meetings-card > .card-header { background-color: #f3e5f5; color: #8e44ad; border-color: #ce93d8; }
.program-info-card > .card-header { background-color: #fdedec; color: #c0392b; border-color: #fadbd8; }
.events-timeline-card > .card-header { background-color: #e0f7fa; color: #00838f; border-color: #b2ebf2; }
.events-timeline-card > .card-header .material-symbols-outlined { color: #00838f !important; }
.gardner-card > .card-header { background-color: #fdf6ff; color: #8e44ad; border-color: #8e44ad; }
.gardner-card > .card-header .material-symbols-outlined { color: #8e44ad !important; }
.vark-card > .card-header { background-color: #f0f7f9; color: #1b3a4b; border-color: #1b3a4b; }
.vark-card > .card-header .material-symbols-outlined { color: #1b3a4b !important; }

/* -------------------------------------------
   5. استایل ابزارها و مودال‌ها
   ------------------------------------------- */
.tools-card-body { display: flex; flex-direction: column; gap: 15px; }
.tool-item .tool-btn { width: 100%; padding: 10px; font-family: inherit; font-size: 0.95rem; font-weight: bold; color: #077b6b; cursor: pointer; border: 2px solid #b2dfdb; background-color: #e0f2f1; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.tool-item .tool-btn:hover { background-color: #baf0e5; border-color: #00796b; color: #007970; }
.tool-action-btn { padding: 8px 12px; margin: 0 5px; border-radius: 4px; border: none; cursor: pointer; font-family: inherit; }
.tool-action-btn.cancel { background-color: var(--danger-color); color: white; }
#timer-setup-view, #timer-countdown-view, #stopwatch-active-view { text-align: center; }
#timer-setup-view input { width: 60px; padding: 8px; border-radius: 4px; border: 1px solid #ccc; font-family: 'Vazir FD'; }
#timer-display { font-size: 2rem; font-weight: bold; margin-bottom: 10px; direction: ltr; }
#stopwatch-active-view { display: none; flex-direction: column; align-items: center; gap: 15px; width: 100%; }
.stopwatch-display { font-family: var(--body-font); font-size: 2.2rem; font-weight: bold; color: #077d84; background-color: #e0f2f1; padding: 10px 20px; border-radius: 8px; width: 100%; text-align: center; direction: ltr; }
.stopwatch-controls { display: flex; gap: 10px; }
.laps-container { width: 100%; max-height: 150px; overflow-y: auto; background-color: #f9fafb; border: 1px solid var(--border-color); border-radius: 6px; }
#laps-list { list-style: none; padding: 0; margin: 0; font-family: monospace; font-size: 0.95rem; }
#laps-list li { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border-color); }
#laps-list li:last-child { border-bottom: none; }
#laps-list .lap-number, #laps-list .lap-time { font-family: 'Vazir FD'; }
#calculator-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); justify-content: center; align-items: center; z-index: 9999; }
#calculator-container { background: #fdfdfd; padding: 15px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3); width: 300px; max-width: 90%; }
#calculator-screen { background-color: #e9ecef; border-radius: 8px; margin-bottom: 15px; padding: 10px 15px; text-align: right; font-family: monospace; }
#calculator-history { min-height: 24px; font-size: 1em; color: #6c757d; direction: ltr; text-align: left; font-family: 'Vazir FD'; }
#calculator-display { color: #333; font-size: 2em; font-weight: 700; font-family: 'Vazir FD'; text-align: left; }
#calculator-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr;}

.calc-btn { padding: 15px 0; font-size: 1.2em; border: 1px solid #ddd; border-radius: 8px; background-color: #fff; cursor: pointer; transition: background-color 0.2s; font-weight: bold; }
.calc-btn:active { transform: translateY(1px); }
.calc-btn.operator { background-color: #f0f7ff; color: #0056b3; }
.calc-btn.function { background-color: #fff0f0; color: #c82333; }
.calc-btn.equals { background-color: #28a745; color: white; grid-row: span 2; }
.calc-btn.zero { grid-column: span 2; }

/* -------------------------------------------
   6. استایل صفحات مدیریت (students.php, ...)
   ------------------------------------------- */
.management-page { max-width: 2000px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.back-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; background-color: #f0f0f0; border-radius: 8px; color: var(--text-color); font-weight: bold; }
.styled-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.styled-form label, .modal-body .form-group label { font-weight: bold; display: block; font-size: 0.9em; }
.styled-form input, .styled-form select, .styled-form textarea { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #ccc; font-family: inherit; font-size: 0.95rem; }
.styled-form input:focus, .styled-form select:focus, .styled-form textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1); outline: none; }
.btn-submit { background-color: var(--primary-color); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 1rem; align-self: flex-start; font-family: inherit; font-weight: bold; }
.btn-cancel { background-color: var(--danger-color); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 1rem; align-self: flex-start; font-family: inherit; font-weight: bold; }
.input-group { display: flex; gap: 10px; }
.input-group input { flex-grow: 1; }
.btn-submit-icon { background-color: var(--secondary-color); color: white; border: none; border-radius: 6px; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.items-list { margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.items-list table { width: 100%; }
.items-list td { border-bottom: 1px solid #f0f0f0; }
.items-list td:last-child { text-align: left; }
.actions-group { display: flex; justify-content: center; gap: 8px; }
.modal-header h3 { margin: 0; }
.close-modal-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-color-light); padding: 0; line-height: 1; }
.modal-body p { margin-bottom: 5px; }
.modal-footer { text-align: left; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }
.modal-footer .btn-cancel { background-color: #aaa; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-family: inherit; font-weight: bold; }

/* -------------------------------------------
   7. استایل پروفایل دانش‌آموز و فرم‌های مودال
   ------------------------------------------- */
.student-points { display: flex; align-items: center; gap: 8px; background-color: #fef9e7; color: #f39c12; padding: 5px 15px; border-radius: 20px; font-size: 1.1rem; }
.student-points b { font-size: 1.3rem; }
.add-record-bar { margin-bottom: 25px; text-align: center; }
.add-record-bar .btn-submit { font-size: 1.1rem; padding: 12px 25px; display: inline-flex; align-items: center; gap: 8px; align-self: center; }
.add-record-bar .btn-submit .material-symbols-outlined { font-size: 24px; }
.form-section { border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.form-section h4 { margin-top: 0; margin-bottom: 2px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.form-grid-3-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.thead-th-small { font-weight: normal; color: var(--text-color-light); font-size: 0.8em; }
.modal-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background-color: #fff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); max-height: 90vh; overflow-y: auto; width: 90%; max-width: 800px; padding: 20px; animation: fadeInModal 0.3s ease-in-out; }
@keyframes fadeInModal { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* -------------------------------------------
   8. چیدمان ریسپانسیو
   ------------------------------------------- */
@media (max-width: 991px) {
  .main-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
  .side-info-card { display: flex !important; flex-direction: column !important; gap: 20px !important; }
  .main-grid > .header-banner-wrapper { order: 1; }
  .main-grid > .side-info-card { order: 2; }
  .main-grid > .main-content-card { order: 3; }
  .main-grid > .student-list-card { order: 4; }
  .header-content { flex-direction: column; align-items: center; text-align: center; }
  .user-info { width: auto; display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 15px; order: 2; }
  .main-actions-toolbar { width: 100%; justify-content: center; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--border-color); order: 3; }
  .header-content h1 { order: 1; }
}
@media (min-width: 992px) {
  .container { padding: 20px; }
  .header-content { flex-direction: row; }
  .user-info { margin-top: 0; }
  .main-actions-toolbar { width: auto; order: 0; padding: 0; margin: 0 20px; border: none; }
  .main-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
  .management-grid { display: grid; grid-template-columns: 400px 1fr; }
  .main-header-card { grid-column: 1 / -1; }
  .main-content-card { grid-column: 2 / 3; grid-row: 2 / 3; }
  .student-list-card { grid-column: 1 / 2; grid-row: 2 / 3; }
  .side-info-card { grid-column: 1 / 2; grid-row: 3 / 4; display: flex; flex-direction: column; gap: 20px; }
  .extra-info-bar { flex-direction: row; }
  .form-grid-2-col, .modal-body .form-grid-2-col { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1300px) {
  .main-grid { grid-template-columns: 350px 1fr 300px; }
  .side-info-card { grid-column: 3 / 4; grid-row: 2 / 3; }
}

/* -------------------------------------------
   9. استایل‌های اختصاصی صفحه پروفایل
   ------------------------------------------- */
@media (max-width: 767px) {
  .management-page .page-header { flex-direction: column; align-items: center; gap: 15px; }
  .management-page .page-header .back-link { width: 100%; justify-content: center; }
}
.management-page .page-header h1 { font-size: 1.8rem; }
.management-page .page-header h1 .material-symbols-outlined { font-size: 32px; vertical-align: -8px; }
.score-vv-good { background-color: #e9f7ef; color: #1e8449; font-weight: bold; }
.score-good { background-color: #eaf5fb; color: #2e86c1; font-weight: bold; }
.score-ok { background-color: #fef9e7; color: #d35400; font-weight: bold; }
.score-bad { background-color: #fdedec; color: #c0392b; font-weight: bold; }
.score-cheat { background-color: #ebedef; color: #2c3e50; font-weight: bold; text-decoration: line-through; }
.points-positive b, .points-negative b { direction: ltr; display: inline-block; min-width: 30px; }
.points-positive b { color: var(--primary-color, #27ae60); }
.points-negative b { color: var(--danger-color, #e74c3c); }

/* -------------------------------------------
   10. استایل‌های ویژه داشبورد
   ------------------------------------------- */
#schedule-table td.active-zang { background-color: #27ae60 !important; color: white !important; font-weight: bold; position: relative; box-shadow: 0 0 20px rgba(39, 174, 96, 0.6); border-radius: 8px; transition: all 0.3s ease-in-out; z-index: 10; }
#schedule-table td.active-zang::before { content: ''; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; background-color: #f1c40f; border-radius: 50%; animation: pulse-live 2s infinite; }
@keyframes pulse-live { 0% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(1); opacity: 0.7; } }
.view-link-btn { display: inline-block; padding: 3px 16px; background-color: var(--primary-color); color: #fff; border: none; border-radius: 5px; font-size: 14px; font-family: 'Vazir FD', sans-serif; cursor: pointer; transition: background-color 0.3s ease; margin-left: 5px; }
.view-link-btn:hover { background-color: var(--primary-color-dark); }
.view-link-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3); }
.program-info-card .card-body { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.license-info, .developer-info { text-align: center; font-size: 0.9rem; color: var(--text-color-light); }
.license-info { background-color: #fdedec; color: #c0393d; padding: 10px; border-radius: 8px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; }
.license-info .material-symbols-outlined { font-size: 20px; }
.meetings-summary { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.meetings-summary > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.meetings-summary > div:last-child { border-bottom: none; }
.meetings-summary b { font-size: 1.1rem; color: #ce93d8; }
.budget-table th.current-month-header { background-color: #fef9e7 !important; color: #d35400 !important; border-bottom: 2px solid #f39c12 !important; }
.budget-table td.current-month-cell { background-color: #fef9e7; font-weight: bold; color: #b45309; }
.bookmarks-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.bookmark-item { position: relative; }
.bookmark-link { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 15px; background-color: #f9fafb; border-radius: 8px; border: 1px solid #f0f0f0; text-decoration: none; color: var(--text-color); transition: all 0.2s; height: 100%; }
.bookmark-link:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.bookmark-favicon { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 8px; object-fit: cover; }
.bookmark-name { font-size: 0.9rem; font-weight: bold; word-break: break-word; }
.delete-bookmark-btn { position: absolute; top: 5px; left: 5px; background: #e74c3c; color: white; border: none; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 22px; text-align: center; opacity: 0; transition: opacity 0.2s; }
.bookmark-item:hover .delete-bookmark-btn { opacity: 1; }
.auto-bell-toggle { display: flex; align-items: center; gap: 10px; background-color: #fdfff7; padding: 5px 10px; border-radius: 20px; }
.auto-bell-toggle .toggle-label { font-size: 0.85rem; font-weight: bold; color: var(--text-color-light); cursor: pointer; }
.auto-bell-toggle .edit-icon-btn { margin-right: 5px; color: #27ae60; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary-color, #27ae60); }
input:focus + .slider { box-shadow: 0 0 1px var(--primary-color, #27ae60); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.manual-bell-ringing { background-color: #f1c40f !important; color: #333 !important; animation: shake 0.5s infinite; }
@keyframes shake { 0% { transform: translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-3px, 0px) rotate(1deg); } 30% { transform: translate(3px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); } 60% { transform: translate(-3px, 1px) rotate(0deg); } 70% { transform: translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); } 90% { transform: translate(1px, 2px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); } }
.tahavol-card > .card-header { background-color: #eaf5fb; color: #3498db; border-color: #aed6f1; }
.tahavol-intro { font-weight: bold; color: var(--text-color-light); font-size: 0.85rem; text-align: center; border-bottom: 1px dashed #ddd; padding-bottom: 10px; }
.tahavol-category, .tahavol-description { display: flex; gap: 8px; }
.tahavol-label { font-weight: bold; color: #3498db; white-space: nowrap; padding: 5px 5px; margin-top: 3px; }
.tahavol-category { background-color: #eaf5fb; padding: 8px 12px; border-radius: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #186295; }
.tahavol-description { flex-direction: column; gap: 5px; }
.tahavol-description p { margin: 0; padding-right: 10px; border-right: 4px solid #aed6f1; font-size: 14px; color: #3498db; }
.score-desc-input { margin-top: 8px; font-size: 0.9em !important; padding: 8px !important; background-color: #f9f9f9; }
.has-description { cursor: pointer; position: relative; font-weight: bold; background-image: linear-gradient(to top, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0) 40%); }
.has-description:hover { background-color: #f0fff8 !important; }
.has-description::after { content: 'chat_bubble'; font-family: 'Material Symbols Outlined'; position: absolute; bottom: 2px; left: 3px; font-size: 14px; line-height: 1; color: inherit; opacity: 0.4; font-weight: normal; }
.table-filter-bar { padding: 15px 20px; background-color: #f9fafb; border-bottom: 1px solid #eaecf1; display: flex; align-items: center; gap: 10px; }
.table-filter-bar label { font-weight: bold; font-size: 0.9rem; color: var(--text-color-light); }
.table-filter-bar select { padding: 8px 12px; border-radius: 6px; border: 1px solid #ccc; font-family: inherit; font-size: 0.9rem; background-color: #fff; }
.table-filter-bar { justify-content: space-between; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background-color: #e_b_ed_f_a; color: #34495e; padding: 8px 15px; border-radius: 8px; font-weight: bold; text-decoration: none; transition: all 0.2s; }
.btn-secondary:hover { background-color: #d_a_d_f_e_2; text-decoration: none; }
.program-info-card .card-body { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.support-icon-wrapper { position: relative; }
.support-icon-btn { display: flex; justify-content: center; align-items: center; width: 60px; height: 60px; border-radius: 50%; background-color: var(--card-header-bg, #f8d7da); color: var(--card-header-color, #58151c); transition: all 0.3s ease; cursor: pointer; border: 2px solid rgba(0,0,0,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.08); position: relative; z-index: 2; }
.support-icon-btn .material-symbols-outlined { font-size: 36px; transition: color 0.3s ease; }
.support-icon-btn::before { content: ''; position: absolute; z-index: -1; top: -2px; left: -2px; right: -2px; bottom: -2px; background: #fadbd8; border-radius: 50%; transform: scale(1); opacity: 0.7; transition: all 0.5s ease; }
.support-icon-btn:hover::before { animation: pulse 1.5s infinite; }
.support-icon-btn:hover { animation: breathe 1.5s infinite; }
.support-icon-btn:hover .material-symbols-outlined { color: #c0392b; }
@keyframes breathe { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.support-icon-btn::after { content: attr(data-tooltip); position: absolute; top: 115%; left: 50%; transform: translateX(-50%); background-color: #333; color: #fff; padding: 6px 12px; border-radius: 5px; font-size: 13px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 10; }
.support-icon-btn:hover::after { opacity: 1; visibility: visible; }
.version-info { width: 95%; text-align: right; padding: 12px 15px; margin: 5px 0; background-color: #fdf5f5; border: 1px solid #f7e3e4; border-radius: 8px; }
.version-info h4 { margin: 0 0 8px; font-size: 14px; color: #58151c; text-align: center; font-weight: bold; }
.version-info ul { list-style-type: '•  '; padding-right: 15px; margin: 0; font-size: 12px; color: #6c5355; line-height: 1.7; }
.program-info-card .license-info, .program-info-card .developer-info { width: 100%; }
.notification-badge { position: absolute; top: -5px; right: -8px; background-color: #ff4d4d; color: white; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; border: 2px solid white; box-shadow: 0 0 5px rgba(0,0,0,0.3); }
#student-name-header { position: relative; }
.th-search-container { width: 100%; height: 100%; }
.search-trigger-icon { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #555; transition: color 0.2s ease; }
.search-trigger-icon:hover { color: #007bff; }
#student-search-input { width: 100%; border: none; background-color: transparent; padding: 6px 28px 6px 0; font-family: inherit; font-size: 1em; font-weight: bold; color: #333; }
#student-search-input:focus { outline: none; }
.close-search-icon { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #888; }
.close-search-icon:hover { color: #e74c3c; }
.th-search-container.search-active .th-title, .th-search-container.search-active .search-trigger-icon { display: none; }
.th-search-container.search-active #student-search-input, .th-search-container.search-active .close-search-icon { display: inline-block; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.modal-header h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.template-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.template-header span { font-size: 0.85rem; font-weight: bold; color: var(--text-color-light); }
.manage-templates-link { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 0.8rem; color: var(--secondary-color); background-color: #eaf5fb; border: 1px solid #aed6f1; border-radius: 15px; text-decoration: none; transition: all 0.2s; }
.manage-templates-link:hover { background-color: #d4e6f1; color: #2874a6; text-decoration: none; }
.manage-templates-link .material-symbols-outlined { font-size: 16px; vertical-align: -3px; margin-inline-end: 0; }
.template-buttons-list { display: flex; flex-wrap: wrap; gap: 6px; }
.template-buttons-container { margin-top: 15px; padding-top: 10px; border-top: 1px dashed #eee; }
.template-buttons-container p { font-size: 0.85rem; font-weight: bold; color: var(--text-color-light); margin-bottom: 8px; }
.template-buttons-container .template-btn { display: inline-block; padding: 5px 10px; margin: 3px; border: none; border-radius: 20px; font-size: 0.85rem; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.template-buttons-container .btn-positive { background-color: #e9f7ef; color: #27ae60; border: 1px solid #a9dfbf; }
.template-buttons-container .btn-positive:hover { background-color: #d4efdf; }
.template-buttons-container .btn-negative { background-color: #fdedec; color: #e74c3c; border: 1px solid #fadbd8; }
.template-buttons-container .btn-negative:hover { background-color: #f5b7b1; }
#next-zang-time { font-family: var(--body-font); font-size: 12px; color: #27ae60; padding: 5px 10px; border-radius: 5px; }
.notification-badge { position: absolute; top: -8px; right: -8px; background-color: #ff4d4f; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.75rem; font-weight: bold; animation: pulse 2s infinite; }
.toolbar-btn.btn-blue { background-color: #eaf5fb; color: #3498db; border-color: #aed6f1; }
.toolbar-btn.btn-blue:hover { background-color: #d4e6f1; color: #2874a6; }
.auto-bell-toggle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding: 5px; background-color: #fdfff7; border-radius: 20px; min-height: 40px; }
.auto-bell-toggle #next-zang-time { font-size: 0.8rem; white-space: nowrap; margin: 0; padding: 4px 8px; border-radius: 12px; }
.auto-bell-toggle .edit-icon-btn { width: 32px; height: 32px; flex-shrink: 0; }
.auto-bell-toggle .toggle-label { font-size: 0.8rem; white-space: nowrap; flex-shrink: 0; }
.auto-bell-toggle .switch { flex-shrink: 0; }
@media (max-width: 767px) {
  .auto-bell-toggle { gap: 5px; padding: 8px; justify-content: space-between; }
  .auto-bell-toggle #next-zang-time { font-size: 0.75rem; padding: 3px 6px; order: 1; }
  .auto-bell-toggle .edit-icon-btn:first-of-type { order: 2; }
  .auto-bell-toggle .toggle-label { order: 3; font-size: 0.75rem; }
  .auto-bell-toggle .switch { order: 4; }
  .auto-bell-toggle .edit-icon-btn:last-of-type { order: 5; }
}
/* ریسپانسیو برای تبلت (عرض 768px تا 991px) */
@media (min-width
.bookmark-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 8px; }
.bookmark-favicon { width: 16px; height: 16px; object-fit: contain; }
.fallback-icon { font-size: 18px !important; color: #555; }