/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #e0e0e0;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layout */
.auth-container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden; /* Prevents content overflow */
  border-radius: 15px; /* Smooth rounded corners */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

/* Left Panel (Authentication) */
.auth-left {
  flex: 1;
  max-width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

/* Logo and Header */
.auth-left .logo {
  font-size: 26px;
  font-weight: bold;
  color: #3c63d2;
  margin-bottom: 20px;
}

.auth-left h2 {
  color: #3c63d2;
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-left p {
  margin-bottom: 20px;
  color: #555;
}

/* Form Styling */
.auth-forms {
  margin-bottom: 10px;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Buttons */
.form-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-primary {
  padding: 10px 18px;
  border: none;
  background-color: #3c63d2;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.btn-outline {
  padding: 10px 18px;
  background-color: transparent;
  border: 2px solid #3c63d2;
  color: #3c63d2;
  border-radius: 6px;
  cursor: pointer;
}

/* Right Panel (Image) */
.auth-right {
  flex: 1;
  max-width: 50%;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  position: relative;
  transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
}

/* Reduced image size with border-radius */
.auth-right img {
  width: 70%; /* Reduced size of the image */
  height: auto;
  border-radius: 10px; /* Rounded corners for the image */
  transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transitions for image opacity and scaling */
}

.auth-right img:hover {
  transform: scale(1.05); /* Zoom effect on hover */
  opacity: 1; /* Ensure full visibility on hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column; /* Stack the left and right panels */
    height: auto;
  }

  .auth-left {
    max-width: 100%; /* Allow the form to take up full width */
    padding: 20px; /* Adjust padding for smaller screens */
  }

  .auth-right {
    max-width: 100%; /* Allow the image to take up full width */
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .auth-left {
    padding: 16px;
  }

  .auth-form input,
  .auth-form select {
    padding: 8px;
  }

  .form-actions {
    flex-direction: column; /* Stack buttons vertically */
  }

  .btn-primary,
  .btn-outline {
    width: 100%; /* Make buttons full-width on small screens */
    padding: 12px;
    margin-bottom: 8px;
  }

  .auth-right img {
    width: 80%; /* Adjust image size for very small screens */
    height: auto;
  }
}



/* Dashboard Layout */
#admin-dashboard,
#donor-dashboard {
  padding: 60px 30px;
  max-width: 900px;
  margin: auto;
  backdrop-filter: blur(10px);
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-size: 32px;
  color: #6dd5ed;
  text-shadow: 0 0 8px #6dd5ed;
}

/* Dashboard Section */
.dashboard-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 30px rgba(0, 255, 255, 0.3);
}

.dashboard-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #00ffff;
  text-shadow: 0 0 4px #00ffff;
}

.dashboard-section p,
.dashboard-section li,
.dashboard-section a {
  color: #c0f2ff;
}

.dashboard-section ul {
  list-style: none;
  padding-left: 0;
}

.dashboard-section ul li::before {
  content: "•";
  color: #00f0ff;
  padding-right: 8px;
}

/* Links */
a {
  color: #6dd5ed;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-outline {
  background-color: transparent;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #00ffff;
  color: #0f2027;
}

/* Social Media Icons */
.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #00ffff;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px #00ffff33;
}

.social-links a:hover {
  background: rgba(0, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 12px #00ffff;
}


/* Glowing Animation */
@keyframes glowBorder {
  0% {
    box-shadow: 0 0 5px #00ffff;
  }
  50% {
    box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
  }
  100% {
    box-shadow: 0 0 5px #00ffff;
  }
}

.dashboard-section.glow {
  animation: glowBorder 2s infinite alternate;
}

/* Expandable Service Cards */
.service-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03);
}

.service-card-content {
  display: none;
  margin-top: 10px;
  color: #aef1ff;
}

/* Light Mode Enhancements */
body.light-mode {
  background: #f8f9fa;
  color: #222;
}

body.light-mode .auth-left h2,
body.light-mode .dashboard-header h1,
body.light-mode .dashboard-section h2 {
  color: #1a237e;
  text-shadow: none;
}

body.light-mode .auth-left p,
body.light-mode .dashboard-section p,
body.light-mode .dashboard-section li,
body.light-mode .dashboard-section a {
  color: #333;
}

body.light-mode .dashboard-section {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.light-mode .dashboard-section ul li::before {
  color: #3c63d2;
}

body.light-mode a {
  color: #3c63d2;
}

body.light-mode .social-links a {
  background: #eee;
  color: #3c63d2;
  box-shadow: 0 0 4px #ccc;
}

body.light-mode .social-links a:hover {
  background: #3c63d2;
  color: #fff;
  box-shadow: 0 0 8px #3c63d2;
}

body.light-mode .service-card {
  background: #f0f0f0;
}

body.light-mode .service-card-content {
  color: #222;
}

body.light-mode .btn-outline {
  border-color: #333;
  color: #333;
}

body.light-mode .btn-outline:hover {
  background-color: #333;
  color: #fff;
}

.dashboard-footer {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin-top: 40px;
  padding: 10px;
}

body.light-mode .dashboard-footer {
  color: #666;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 20px;
  color: #333;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

#theme-toggle:hover {
  color: #555;
}
