:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1050;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Cards */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.opportunity-card {
  cursor: pointer;
  height: 100%;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border: none;
}

/* Auth Pages */
.auth-bg {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-form-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.auth-image {
  background: url("../assets/images/volunteer-auth.jpg") center/cover;
  position: relative;
}

.auth-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 80, transparent);
}

/* Filters */
.filters-sidebar {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Stats Cards */
.stats-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.stats-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.stats-card h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Calendar Styles */
.calendar-container {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Message Styles */
.message-container {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 1rem;
}

.message-bubble {
  max-width: 70%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 15px;
}

.message-sent {
  background: var(--primary-color);
  color: white;
  margin-left: auto;
  text-align: right;
}

.message-received {
  background: #e9ecef;
  color: #333;
}

/* Impact Report Styles */
.impact-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.impact-chart {
  height: 300px;
  margin: 1rem 0;
}

/* Group Styles */
.group-card {
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.group-card:hover {
  border-left-color: var(--success-color);
}

.group-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }

  .auth-form-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .stats-card {
    margin-bottom: 1rem;
  }

  .message-bubble {
    max-width: 85%;
  }

  .card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .stats-card h3 {
    font-size: 2rem;
  }

  .stats-card i {
    font-size: 2rem;
  }
}

/* Loading States */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* Form Enhancements */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.5em 0.75em;
}

/* Table Enhancements */
.table {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.table thead th {
  background: var(--light-color);
  border-bottom: none;
  font-weight: 600;
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  background: var(--light-color);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Utility Classes */
.text-primary-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.shadow-custom {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Enhancements */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #fff !important;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

/* Footer Styles */
footer {
  margin-top: auto;
}

footer a:hover {
  color: #007bff !important;
  transition: color 0.3s ease;
}

.social-links a {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

/* Auth Buttons */
.nav-item .btn {
  margin: 0 0.25rem;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .nav-item .btn {
    margin: 0.25rem 0;
    width: 100%;
  }

  footer .col-lg-4,
  footer .col-lg-2 {
    text-align: center;
  }
}

/* Loading Animation */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Sticky Footer */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container,
.container-fluid {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Auth Pages Enhancements */
.auth-form-container {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin: 1rem;
}

.auth-image {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  position: relative;
}

.auth-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.auth-image > div {
  position: relative;
  z-index: 2;
}

/* Enhanced Form Styling */
.input-group-text {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.form-control {
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .auth-form-container {
    margin: 0.5rem;
    padding: 2rem;
  }

  .container-fluid {
    padding: 0;
  }

  .col-lg-6 {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .auth-form-container {
    padding: 1.5rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .row .col-md-6 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Form Validation Styling */
.is-invalid {
  border-color: #dc3545;
}

.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Loading States */
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary .spinner-border {
  width: 1rem;
  height: 1rem;
}
