/* ====================================
   متغیرهای رنگی و گرادینت‌ها
   ==================================== */
:root {
  --primary-gradient: linear-gradient(135deg, #58b09c 0%, #386150 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --danger-gradient: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
  --teamcall-primary-rgb: rgb(88 176 156);
}

/* ====================================
   استایل عمومی صفحه
   ==================================== */
body {
  background: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ====================================
   نوار بالایی (Navbar)
   ==================================== */
.navbar {
  background: var(--primary-gradient);
  box-shadow: 0 12px 17px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.navbar-brand {
  color: white !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ====================================
   سایدبار
   ==================================== */
aside {
  background: white;
  box-shadow: 5px 0 16px rgba(0,0,0,0.05);
  min-height: calc(100vh - 76px);
}

.sidebar-title {
  padding: 1rem;
  color: #495057;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* ====================================
   لینک‌های منو - حالت عادی
   ==================================== */
.nav-link {
  border-radius: 6px;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  border: 2px solid transparent;
}

.nav-link:hover:not(.active) {
  background: #f8f9fa;
  color: #667eea;
  transform: translateX(-3px);
}

.nav-link i {
  font-size: 1.2rem;
  min-width: 24px;
}

/* ====================================
   لینک فعال - استایل کادری مانند هدر
   ==================================== */
.nav-link.active {
  background: linear-gradient(135deg, #58b09c 0%, #386150 100%);
  color: white !important;
  border: 2px solid #51ad82;
  box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
  transform: translateX(-5px);
  font-weight: 600;
}

.nav-link.active i {
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ====================================
   دکمه‌های نوار بالا
   ==================================== */
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* ====================================
   هدر صفحات (کادر بنفش بالای صفحه)
   ==================================== */
.page-header {
  background: linear-gradient(135deg, #58b09c 0%, #386150 100%);
  border-radius: 16px;
  padding: 1.3rem;
  color: white;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(202, 247, 226, 0.4);
}
.text-secondary{
	--bs-text-opacity: 1;
    color: #6c757d, 1 !important;
    text-decoration: none;
}
.search-box{
	padding-bottom: 15px;
	width: fit-content;
	
}
.btn-search {
	color: white;
    background: linear-gradient(135deg, #58b09c 0%, #386150 100%);
    border-color: #386150;
	border: none;

}
.btn-search:hover {
	color: white;
    background: linear-gradient(135deg, #58b09c 0%, #386150 100%);
    border-color: #386150;
	transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.stats-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 150px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ====================================
   کارت‌های جلسات
   ==================================== */
.meeting-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
}
.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--teamcall-primary-rgb), var(--bs-text-opacity)) !important;
}
.meeting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-header-custom {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 3px solid #4a442dc2;
  padding: 1.25rem;
}

.meeting-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meeting-id {
  font-size: 0.85rem;
  color: #6c757d;
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ====================================
   بج وضعیت جلسه
   ==================================== */
.status-badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.status-active {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.status-inactive {
  background: #e9ecef;
  color: #444;
}

/* ====================================
   بخش ورود به جلسه
   ==================================== */
.join-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 0.3rem 0;
}

.join-title {
  font-weight: 600;
  color: #495057;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ====================================
   Input Group - کادر کد ورود
   ==================================== */
.input-group-custom {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #dee2e6;
}
.bi-key-fill {
	padding-left: 0.5rem;
}
.input-group-custom .input-group-text {
  background: #58b09c;
  color: white;
  border: none;
  font-weight: 500;
  min-width: 140px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.input-group-custom .form-control {
  border: none;
  background: #ffffff;
  font-family: 'Courier New', monospace;
  color: #495057;
  font-weight: 500;
  text-align: center;
}

/* ====================================
   دکمه‌های کپی - مشکی با background روشن
   ==================================== */
.input-group-custom .btn-copy {
  background: #f8f9fa !important;
  color: #212529 !important;
  border: none !important;
  border-left: 1px solid #dee2e6 !important;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group-custom .btn-copy:hover {
  background: #e9ecef !important;
  color: #000000 !important;
  transform: scale(1.05);
}

.input-group-custom .btn-copy:active {
  background: #dee2e6 !important;
  transform: scale(0.98);
}

.input-group-custom .btn-copy i {
  font-size: 1.1rem;
  font-weight: bold;
}

/* ====================================
   دکمه‌های ورود
   ==================================== */
.input-group-custom .btn-join-attendee {
  background: linear-gradient(135deg, #ee0979 100%, #ff6a00 0%);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.input-group-custom .btn-join-attendee:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(238, 9, 121, 0.4);
}

.input-group-custom .btn-join-moderator {
  background: linear-gradient(135deg, #58b09c 0%, #41533f 100%);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.input-group-custom .btn-join-moderator:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* ====================================
   متن راهنما
   ==================================== */
.help-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #fff3cd;
  border-radius: 8px;
  border-right: 3px solid #ffc107;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

/* ====================================
   دکمه‌های عملیات (آمار، ویرایش، حذف)
   ==================================== */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: white;
  border-top: 1px solid #e9ecef;
}

.btn-action {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action:hover {
  transform: scale(1.05);
}

/* ====================================
   حالت خالی (وقتی جلسه‌ای نیست)
   ==================================== */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

/* ====================================
   نوتیفیکیشن Toast
   ==================================== */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-100%); }
  to { transform: translateX(-50%) translateY(0); }
}

/* ====================================
   Responsive Design - موبایل
   ==================================== */
@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.5rem !important;
  }
  
  .stats-row {
    flex-direction: column;
  }
  
  .stat-card {
    min-width: 100%;
  }
  
  aside {
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: auto;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }

  .input-group-custom .input-group-text {
    min-width: 100px;
    font-size: 0.85rem;
  }
  
  .action-buttons {
    justify-content: center;
  }
}

/* ====================================
   بهبود چاپ
   ==================================== */
@media print {
  aside, .navbar, .action-buttons {
    display: none;
  }
  
  .meeting-card {
    break-inside: avoid;
  }
}
