/* DBD Website Styles */
/* Brand Colors:
   Dublin Blue (Primary): #003366
   Dublin Yellow (Accent): #FFD700
   White: #FFFFFF
   Dark Grey (Text): #333333
   Light Grey (Backgrounds): #f5f5f5
*/

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #003366;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FFD700;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FFD700;
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #003366;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #f5f5f5;
}

.mobile-nav a:hover {
  background-color: #f5f5f5;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  color: #FFFFFF;
  padding: 8rem 0 5rem;
  margin-top: 70px;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 auto;
  position: relative;
}

.phone-mockup {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #FFD700;
  color: #003366;
}

.btn-primary:hover {
  background-color: #e6c200;
  color: #003366;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
  background-color: #FFFFFF;
  color: #003366;
}

.btn-outline {
  background-color: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.btn-outline:hover {
  background-color: #003366;
  color: #FFFFFF;
}

/* Coming Soon Badges */
.btn-coming-soon {
  position: relative;
  flex-direction: column;
  padding-bottom: 1.5rem;
}

.badge-coming-soon {
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.btn-primary .badge-coming-soon {
  background-color: rgba(0, 51, 102, 0.3);
}

.btn-secondary .badge-coming-soon {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #f5f5f5;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #003366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: #FFD700;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666666;
  margin-bottom: 0;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.1rem;
  color: #555555;
}

.disclaimer-inline {
  background-color: #f5f5f5;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666666;
}

/* Page Content (for policy/terms/contact pages) */
.page-header {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  color: #FFFFFF;
  padding: 6rem 0 3rem;
  margin-top: 70px;
  text-align: center;
}

.page-header h1 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.8;
  margin-bottom: 0;
}

.page-content {
  padding: 3rem 0 5rem;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #FFD700;
}

.page-content h3 {
  margin-top: 1.5rem;
  color: #003366;
}

.page-content ul, .page-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-card {
  background-color: #f5f5f5;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-card .email-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: #003366;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: #FFFFFF;
  border-radius: 8px;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.contact-card .email-link:hover {
  background-color: #003366;
  color: #FFD700;
}

/* Donate Page */
.donate-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.donate-benefits {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  text-align: left;
}

.donate-benefits h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.donate-benefits ul {
  list-style: none;
  margin: 0;
}

.donate-benefits li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.donate-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
}

.donate-buttons {
  margin-top: 2rem;
}

.donate-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #fff8e1;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666666;
}

/* Footer */
.footer {
  background-color: #003366;
  color: #FFFFFF;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 35px;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #FFFFFF;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #FFD700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.7;
}

.disclaimer {
  opacity: 0.6;
  font-size: 0.8rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .phone-mockup {
    width: 200px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Auth Styles */
.auth-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 0;
}

.auth-form {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333333;
  font-size: 0.95rem;
}

.form-group input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group input::placeholder {
  color: #999999;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #666666;
  margin-top: 0.35rem;
}

.form-description {
  color: #666666;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #fff5f5;
  border-radius: 6px;
  display: none;
}

.form-error:not(:empty) {
  display: block;
}

.form-success {
  color: #28a745;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f0fff4;
  border-radius: 6px;
  display: none;
}

.form-success:not(:empty) {
  display: block;
}

/* Form Divider */
.form-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0 1rem;
  color: #666666;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.form-divider span {
  padding: 0 0.75rem;
}

/* Checkbox Styles */
.form-checkbox {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  cursor: pointer;
  accent-color: #003366;
}

.checkbox-text {
  font-size: 0.95rem;
  color: #333333;
}

/* App Access Fields */
.app-access-fields {
  background-color: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #e9ecef;
}

.app-access-fields .form-group {
  margin-bottom: 1rem;
}

.app-access-fields .form-group:last-child {
  margin-bottom: 0;
}

/* Required/Optional Labels */
.required {
  color: #dc3545;
  font-weight: normal;
}

.optional {
  color: #999999;
  font-weight: normal;
  font-size: 0.85em;
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.success-modal-content {
  background-color: #FFFFFF;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  margin: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  background-color: #28a745;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.success-modal-content p {
  font-size: 1rem;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.success-modal-content small {
  color: #666666;
  font-size: 0.85rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.form-link {
  text-align: center;
  margin-top: 1rem;
}

.form-link a {
  color: #003366;
  font-size: 0.9rem;
}

.form-link a:hover {
  text-decoration: underline;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.75rem 0;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}

.auth-divider span {
  padding: 0 1rem;
  color: #888888;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
}

.btn-google {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  color: #333333;
  border: 2px solid #e0e0e0;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-google:hover {
  background-color: #f8f8f8;
  border-color: #c0c0c0;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.auth-toggle span {
  color: #666666;
  font-size: 0.95rem;
}

.auth-toggle a {
  color: #003366;
  font-weight: 600;
  margin-left: 0.25rem;
}

.auth-toggle a:hover {
  text-decoration: underline;
  color: #004080;
}

/* Auth page background */
.page-content:has(.auth-container) {
  background-color: #f5f5f5;
  min-height: calc(100vh - 300px);
}

/* User Profile Menu (logged in state) */
.user-menu {
  position: relative;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid #e0e0e0;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-menu-trigger:hover {
  background-color: #f0f0f0;
  border-color: #d0d0d0;
}

.user-menu.open .user-menu-trigger {
  background-color: #e8e8e8;
  border-color: #003366;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #003366;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333333;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-chevron {
  font-size: 0.7rem;
  color: #666666;
  transition: transform 0.2s ease;
}

.user-menu.open .menu-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-email {
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
  color: #666666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: #f9f9f9;
  border-radius: 10px 10px 0 0;
}

.dropdown-divider {
  height: 1px;
  background-color: #e8e8e8;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-size: 0.875rem;
  color: #333333;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
}

.dropdown-icon {
  font-size: 1rem;
  color: #666666;
}

.dropdown-item-link {
  text-decoration: none;
  color: #003366;
  font-weight: 500;
}

.dropdown-item-link:hover {
  color: #003366;
}

.nav-auth-link {
  font-weight: 600;
  color: #003366;
  padding: 0.5rem 1rem;
  border: 2px solid #FFD700;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-auth-link:hover {
  background-color: #FFD700;
  color: #003366;
}

/* Donation Tiers */
.donation-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tier-btn {
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  background-color: #f5f5f5;
  color: #003366;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tier-btn:hover {
  border-color: #003366;
  background-color: #FFFFFF;
}

.tier-btn.selected {
  background-color: #003366;
  color: #FFD700;
  border-color: #003366;
}

.custom-amount-wrapper {
  margin-bottom: 1.5rem;
}

.custom-amount-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 200px;
  margin: 0 auto;
}

.custom-amount-input span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003366;
}

.custom-amount-input input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.custom-amount-input input:focus {
  outline: none;
  border-color: #003366;
}

.donate-login-prompt {
  background-color: #fff8e1;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.donate-login-prompt p {
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .donation-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   ADMIN DASHBOARD STYLES
   ===================================================== */

.admin-loading,
.admin-access-denied {
  text-align: center;
  padding: 3rem;
}

.admin-access-denied h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.admin-access-denied p {
  margin-bottom: 1.5rem;
  color: #666666;
}

/* Stats Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid;
}

.stat-card.stat-pending {
  border-left-color: #ffc107;
}

.stat-card.stat-approved {
  border-left-color: #28a745;
}

.stat-card.stat-total {
  border-left-color: #003366;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #003366;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666666;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #003366;
}

.tab-btn.active {
  color: #003366;
  border-bottom-color: #003366;
}

/* Table */
.admin-table-container {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.admin-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333333;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background-color: #f8f9fa;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.user-email {
  font-weight: 500;
  color: #333333;
}

.user-name {
  font-size: 0.8rem;
  color: #999999;
}

.loading-row,
.error-row {
  text-align: center;
  color: #666666;
  font-style: italic;
}

.error-row {
  color: #dc3545;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-approved {
  background-color: #d4edda;
  color: #155724;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
  cursor: help;
}

.status-none {
  background-color: #e9ecef;
  color: #666666;
}

/* Action Buttons */
.btn-action {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
}

.btn-action:last-child {
  margin-right: 0;
}

.btn-approve {
  background-color: #28a745;
  color: #FFFFFF;
}

.btn-approve:hover {
  background-color: #218838;
}

.btn-approve:disabled {
  background-color: #94d3a2;
  cursor: not-allowed;
}

.btn-reject {
  background-color: #dc3545;
  color: #FFFFFF;
}

.btn-reject:hover {
  background-color: #c82333;
}

.btn-revoke {
  background-color: #6c757d;
  color: #FFFFFF;
}

.btn-revoke:hover {
  background-color: #5a6268;
}

.btn-revoke:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

/* No Users Message */
.no-users-message {
  padding: 3rem;
  text-align: center;
  color: #666666;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  color: #333333;
}

.modal-content p {
  color: #666666;
  margin-bottom: 1.5rem;
}

.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.modal-content textarea:focus {
  outline: none;
  border-color: #003366;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.btn-secondary {
  background-color: #e9ecef;
  color: #333333;
}

.btn-secondary:hover {
  background-color: #dee2e6;
}

.btn-danger {
  background-color: #dc3545;
  color: #FFFFFF;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-danger:disabled {
  background-color: #e4606d;
  cursor: not-allowed;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 0.6rem 0.75rem;
  }

  .admin-table-container {
    overflow-x: auto;
  }

  .admin-table {
    min-width: 600px;
  }

  .btn-action {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
}
