/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* Login Page Styles */
.login-body {
  background-color: #f8f9fa;
  height: 100vh;
  overflow: hidden;
}

/* Left Column - Image Container */
.login-image-container {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Right Column - Form Container */
.login-form-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background-color: #ffffff;
}

.login-logo {
  width: auto;
  height: 70px;
}

.portal-sopyright {
  align-self: last baseline;
}

.login-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out;
  width: 100%;
  max-width: 400px;
}

.login-title {
  color: #0A243F;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Enhanced input styling with Material Icons */
.input-group-text {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

.input-group-text .material-icons {
  font-size: 20px;
}

.form-control {
  border-left: none;
  padding-left: 0.75rem;
}

.form-control:focus {
  border-color: #0A243F;
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0);
}

.input-group:focus-within .input-group-text {
  border-color: #0A243F;
  background-color: rgba(30, 58, 95, 0.1);
  color: #0A243F;
}

/* Enhanced button with hover animations */
.login-btn {
  background-color: #0A243F;
  border-color: #0A243F;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #044282;
  border-color: #044282;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 91, 95, 0.3);
}

.login-btn:active {
  background-color: #044282;
  border-color: #044282;
  transform: translateY(0);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
}

.toast-notification {
  background: #dc3545;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

.toast-notification.fade-out {
  animation: slideOutRight 0.3s ease-out forwards;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-left: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

/* Enhanced close button styling with Material Icons */
.toast-close:hover {
  opacity: 0.8;
}

.toast-close .material-icons {
  font-size: 18px;
}

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

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

/* Sidebar Styles */
.sidebar {
  background-color: #0A243F;
  min-height: 100vh;
  padding: 0;
  position: fixed;
  width: 16.66667%;
  z-index: 1000;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
  font-weight: 700;
  font-size: 1.2rem;
}

.sidebar-nav {
  padding: 1rem 0;
  flex-grow: 1;
}

.dashboard-logo-white {
  width: 100%;
  height: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: #2471c4;
}

.nav-item:hover .material-icons {
  transform: translateX(5px);
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: #2471c4;
}

.nav-item .material-icons {
  margin-right: 0.75rem;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
  background-color: rgba(220, 53, 69, 0.2);
  border-left-color: #dc3545;
}

/* Main Content */
.main-content {
  margin-left: 16.66667%;
  padding: 2rem;
}

.dashboard-header {
  padding: 4rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: visible;
}

.header-content {
  position: relative;
  z-index: 1;
}

.doctor-photo-overlay {
  position: absolute;
  top: -80px;
  right: 65px;
  width: auto;
  height: 350px;
  object-fit: cover;
  z-index: 0;
}

/* Cards */
.stat-card,
.chart-card,
.table-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(1px);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-title {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-value {
  color: #2c3e50;
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
}

/* Charts */
.chart-card canvas {
  max-height: 300px;
}

/* Table */
.table-card {
  margin-bottom: 2rem;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: #495057;
  background-color: #f8f9fa;
}

.table td {
  vertical-align: middle;
}

.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .login-form-container {
    height: 100vh;
    width: 100vw;;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  }
  
  .login-logo-image img {
    width: 200px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

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

  .doctor-photo-overlay {
    position: relative;
    top: auto;
    right: auto;
    width: 80px;
    height: 80px;
    margin: 1rem auto 0;
    display: block;
  }

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

  .login-form-container {
    padding: 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }
}