
:root {
    --main-color: #2A5C7D;
    --secondary-color: #5BA4E6;
    --primary: #2563eb;
    --secondary: #3b82f6;
    --success: #22c55e;
    --info: #06b6d4;
    --danger: #ef4444;
    --light-bg: #f8fafc;
}
body {
    font-family: 'Tajawal', sans-serif;
    background: var(--light-bg);
}

/* تستهدف الصورة داخل navbar-brand */
.navbar .navbar-brand .login-logo {
  height: 50px;
  margin: 0 auto;
  width: auto;
  object-fit: cover

}
.dashboard-card { 
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.dashboard-card:hover { transform: translateY(-5px); }
.visits-list .patient-avatar {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
}
.procedure-icon { color: #2c7be5; }
.treatment-badge { background: #f8f9fa!important; color: #2c7be5!important; }
.patient-avatar {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
}


/***************************************************************/

.dashboard-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.patient-avatar-lg {
  width: 100px;
  height: 100px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

.visit-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.visit-header {
  padding: 1rem;
  background: var(--light-bg);
  cursor: pointer;
  transition: background 0.2s ease;
}

.visit-header:hover {
  background: #f1f5f9;
}

.visit-details {
  border-top: 2px solid #e2e8f0;
  background: #f8fafc;
}

.badge-custom {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

/***************************************************************/
.login-container {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
  width: 120px;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.input-group-text {
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0 !important;
}

.form-control {
  border-radius: 8px 0 0 8px !important;
  border: 2px solid #eee;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--main-color);
  box-shadow: none;
}

.btn-login {
  background: var(--secondary-color);
  color: white;
  font-weight: 700;
  transition: all 0.3s;
  border: none;
  padding: 12px;
  border-radius: 8px;
}

.btn-login:hover {
  background: var(--main-color);
  transform: translateY(-2px);
}

.footer-text a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s;
}

.footer-text a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

@media (max-width: 576px) {
  .login-container {
    padding: 0 20px;
  }
  .login-card {
    padding: 1.5rem !important;
  }
}





/* .dashboard-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.info-card {
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h6 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: #7f8c8d;
  margin-bottom: 0;
  line-height: 1.6;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}


.glass-dashboard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.3);
} */

.stat-card {
  position: relative;
  border-radius: 20px;
  padding: 1.5rem;
  color: white;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-wave {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255,255,255,0.15);
  clip-path: wave(0 0, 100% 0, 100% 100%, 0 80%);
}

.gradient-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.chart-container {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-btn {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: var(--transition);
}

.chart-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.data-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  background: var(--background);
  transition: var(--transition);
}

.data-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.data-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

.neo-select {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  transition: var(--transition);
}

.neo-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

@media (max-width: 768px) {
  .glass-dashboard {
    border-radius: 16px;
    padding: 1rem;
  }
  
  .fluid-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

.chart-container {
  position: relative;
  width: 100%;
  height: 400px; 
}

#incomeChart {
  width: 100% !important;
  height: 100% !important;
}

