/* Bootstrap Overrides and Custom Styles */
body {
  background-color: #f5f5f5;
  color: #333;
}

/* Custom Container */
.auth-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: 100vh;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: white;
  color: #00a896;
  border: 2px solid #00a896;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: #00a896;
  color: white;
  text-decoration: none;
}

.language-switcher {
  display: flex;
  gap: 0;
  border: 2px solid #00a896;
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  padding: 10px 20px;
  background-color: white;
  color: #00a896;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background-color: #00a896;
  color: white;
}

.lang-btn:not(:last-child) {
  border-right: 2px solid #00a896;
}

/* Form Container */
.form-container {
  background-color: white;
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
  color: #00a896;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.form-subtitle {
  color: #666;
  font-size: 16px;
  text-align: center;
  margin-bottom: 35px;
}

/* Form Label */
.form-label {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-label .required {
  color: #e74c3c;
}

/* Form Controls - Override Bootstrap */
.form-control,
.form-select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  height: auto;
}

.form-control:focus,
.form-select:focus {
  border-color: #00a896;
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 150, 0.15);
}

.form-control::placeholder {
  color: #999;
}

/* Password Input with Toggle */
.password-input-group {
  position: relative;
}

.password-input-group .form-control {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  padding: 5px;
  z-index: 10;
}

.password-toggle:hover {
  color: #333;
}

/* OTP Input */
.otp-info {
  text-align: center;
  margin-bottom: 30px;
}

.otp-number {
  color: #f39c12;
  font-weight: 600;
}

.edit-number {
  color: #f39c12;
  text-decoration: none;
  margin-left: 5px;
}

.otp-input {
  text-align: center;
  font-size: 18px;
  letter-spacing: 8px;
}

.resend-link {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
}

.resend-link a {
  color: #00a896;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.resend-link a:hover {
  text-decoration: underline;
}

.resend-link a.disabled {
  color: #999;
  pointer-events: none;
  opacity: 0.5;
}

#timerText {
  color: #666;
  font-weight: 500;
  font-size: 14px;
}

/* Button Styles */
.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: #f39c12;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 25px;
}

.submit-btn:hover {
  background-color: #e67e22;
}

.submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Links */
.form-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.form-links a {
  color: #00a896;
  text-decoration: none;
  font-weight: 500;
}

.form-links a:hover {
  text-decoration: underline;
}

.form-links .highlight {
  color: #f39c12;
}

/* Terms and Conditions */
.terms-text {
  font-size: 12px;
  color: #666;
  margin-top: 25px;
  text-align: center;
  line-height: 1.6;
}

.terms-text a {
  color: #00a896;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

.mandatory-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  display: block;
}

/* Bootstrap Alert Overrides */
.alert {
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 14px;
}

.alert-danger {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-success {
  background-color: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

/* Dashboard Styles */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px 30px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 600;
  color: #00a896;
  margin: 0;
}

.logout-btn {
  padding: 8px 20px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.welcome-message {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.user-name {
  color: #00a896;
  font-weight: 600;
}

.donate-btn {
  padding: 14px 40px;
  background-color: #f39c12;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.donate-btn:hover {
  background-color: #e67e22;
  text-decoration: none;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-container {
    padding: 40px 25px;
  }

  .header {
    flex-direction: column;
    gap: 15px;
  }

  .auth-container {
    padding: 20px 15px;
  }
}

/* PIN Code Auto-population Styles */
.border-success {
  border-color: #00a896 !important;
  transition: border-color 0.3s ease;
}

#pinCodeLoader {
  pointer-events: none;
}

/* Spinner animation */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Dashboard Styles */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: #00a896 !important;
  transform: translateY(-2px);
}

.nav-link.active {
  border-bottom: 2px solid #00a896;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: #00a896;
  padding-left: 1.75rem;
}

.dropdown-header {
  color: #00a896;
  font-weight: 600;
  font-size: 0.9rem;
}

.card {
  border-radius: 12px;
  overflow: hidden;
}

.card-header {
  border-bottom: 2px solid #f5f5f5;
}

.table th {
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #00a896;
}

.table td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sortable {
  user-select: none;
  transition: color 0.2s ease;
}

.sortable:hover {
  color: #00a896 !important;
}

.sortable i {
  font-size: 0.8rem;
  opacity: 0.5;
}

.input-group-text {
  border-right: none;
}

.input-group .form-control {
  border-left: none;
}

.input-group .form-control:focus {
  border-color: #00a896;
  box-shadow: none;
}

.form-select:focus {
  border-color: #00a896;
  box-shadow: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-link.active {
    border-bottom: 1px solid #00a896;
    border-left: 3px solid #00a896;
  }

  .table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }

  .card-header h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .table {
    font-size: 0.75rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ========================================
   ELEGANT DASHBOARD STYLES
   ======================================== */

/* Dashboard Body */
.dashboard-body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 100vh;
}

/* Elegant Navbar */
.elegant-navbar {
  border-bottom: 1px solid rgba(0, 168, 150, 0.1);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00a896;
  letter-spacing: -0.5px;
}

/* Navigation Links */
.nav-link-custom {
  color: #666 !important;
  font-weight: 500;
  padding: 0.6rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-custom:hover {
  color: #00a896 !important;
  background-color: rgba(0, 168, 150, 0.08);
}

.nav-link-custom.active {
  color: #00a896 !important;
  background-color: rgba(0, 168, 150, 0.12);
  font-weight: 600;
}

.nav-link-donate {
  color: #f39c12 !important;
  font-weight: 600;
  padding: 0.6rem 1.2rem !important;
  border-radius: 8px;
  background-color: rgba(243, 156, 18, 0.1);
  transition: all 0.3s ease;
}

.nav-link-donate:hover {
  background-color: #f39c12;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* User Dropdown */
.user-dropdown-toggle {
  color: #00a896 !important;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-dropdown-toggle:hover {
  background-color: rgba(0, 168, 150, 0.08);
}

.user-avatar i {
  font-size: 1.8rem;
  color: #00a896;
}

.user-name {
  font-weight: 500;
  color: #333;
}

.elegant-dropdown {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 220px;
}

.elegant-dropdown .dropdown-header {
  color: #00a896;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
}

.elegant-dropdown .dropdown-item {
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.elegant-dropdown .dropdown-item:hover {
  background-color: rgba(0, 168, 150, 0.08);
  color: #00a896;
  padding-left: 1.5rem;
}

.elegant-dropdown .dropdown-item.text-danger:hover {
  background-color: rgba(220, 53, 69, 0.08);
  color: #dc3545;
}

/* Dashboard Content */
.dashboard-content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Welcome Card */
.welcome-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.user-highlight {
  color: #00a896;
  position: relative;
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
}

/* Action Cards */
.action-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00a896, #00c9b0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 168, 150, 0.15);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card-donate::before {
  background: linear-gradient(90deg, #f39c12, #ffb347);
}

.action-card-donate:hover {
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.15);
}

.action-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.1), rgba(0, 168, 150, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}

.action-icon i {
  font-size: 1.8rem;
  color: #00a896;
}

.action-card-donate .action-icon {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(243, 156, 18, 0.05));
}

.action-card-donate .action-icon i {
  color: #f39c12;
}

.action-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.action-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.action-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #00a896;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
  transform: translateX(5px);
}

.action-card-donate .action-arrow {
  color: #f39c12;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

/* Directory Card */
.directory-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Directory Filters */
.directory-filters {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f5f5f5;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1rem;
  z-index: 1;
}

.search-box .form-control {
  padding-left: 3rem;
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  height: 48px;
  transition: all 0.3s ease;
}

.search-box .form-control:focus {
  border-color: #00a896;
  box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.1);
}

.filter-select {
  border: 2px solid #e8ecf1;
  border-radius: 10px;
  height: 48px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #666;
}

.filter-select:focus {
  border-color: #00a896;
  box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.1);
}

/* Directory Table */
.directory-table {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.directory-table thead {
  background: linear-gradient(135deg, #f8f9fa, #e8ecf1);
  border-bottom: 2px solid #00a896;
}

.directory-table th {
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 0.75rem;
  border: none;
}

.directory-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.directory-table th.sortable:hover {
  color: #00a896;
  background-color: rgba(0, 168, 150, 0.05);
}

.directory-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.directory-table tbody tr:hover {
  background-color: rgba(0, 168, 150, 0.03);
  transform: scale(1.01);
}

.directory-table td {
  padding: 1rem 0.75rem;
  color: #555;
  font-size: 0.95rem;
  vertical-align: middle;
}

.phone-link {
  color: #00a896;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.phone-link:hover {
  color: #008577;
  text-decoration: underline;
}

/* Directory Footer */
.directory-footer {
  padding-top: 1.5rem;
  border-top: 2px solid #f5f5f5;
  margin-top: 1.5rem;
}

/* Coming Soon Card */
.coming-soon-card {
  background: white;
  border-radius: 20px;
  padding: 4rem 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.coming-soon-icon {
  color: #00a896;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.coming-soon-text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.coming-soon-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.coming-soon-list li {
  padding: 0.75rem 0;
  color: #555;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.coming-soon-list li i {
  color: #00a896;
  font-size: 1.2rem;
}

.coming-soon-footer {
  font-size: 1rem;
  color: #999;
  font-style: italic;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Mobile Responsive for Dashboard */
@media (max-width: 991px) {
  .navbar-logo {
    height: 38px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-link-custom,
  .nav-link-donate {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-link-custom.active {
    border-left: 3px solid #00a896;
  }

  .welcome-title {
    font-size: 1.8rem;
  }

  .welcome-subtitle {
    font-size: 1rem;
  }

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

  .action-card {
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .directory-card {
    padding: 1.5rem;
  }

  .coming-soon-card {
    padding: 3rem 2rem;
  }

  .coming-soon-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 35px;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .welcome-card {
    padding: 1.5rem 1rem;
  }

  .action-card {
    padding: 1.5rem 1rem;
  }

  .action-icon {
    width: 50px;
    height: 50px;
  }

  .action-icon i {
    font-size: 1.5rem;
  }

  .action-title {
    font-size: 1.1rem;
  }

  .action-description {
    font-size: 0.9rem;
  }

  .directory-table {
    font-size: 0.85rem;
  }

  .directory-table th,
  .directory-table td {
    padding: 0.75rem 0.5rem;
  }

  .coming-soon-card {
    padding: 2rem 1.5rem;
  }

  .coming-soon-icon svg {
    width: 80px;
    height: 80px;
  }

  .coming-soon-title {
    font-size: 1.4rem;
  }

  .coming-soon-text {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .welcome-title {
    font-size: 1.3rem;
  }

  .welcome-subtitle {
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .page-subtitle {
    font-size: 0.9rem;
  }

  .directory-table {
    font-size: 0.75rem;
  }

  .directory-table th,
  .directory-table td {
    padding: 0.5rem 0.25rem;
  }

  .search-box .form-control,
  .filter-select {
    height: 42px;
    font-size: 0.9rem;
  }

  .coming-soon-icon svg {
    width: 60px;
    height: 60px;
  }

  .coming-soon-list {
    font-size: 0.9rem;
  }
}

/* Brand button (teal) */
.btn-brand {
  background-color: #00a896;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-brand:hover {
  background-color: #009682;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.25);
}

/* Brand outline button (teal outline) */
.btn-outline-brand {
  background-color: transparent;
  color: #00a896 !important;
  border: 2px solid #00a896;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-outline-brand:hover {
  background-color: #00a896;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.15);
}
