/* Global Styles - Used across all public pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #b99035;
  --primary-light-color: #ffd475;
  --success-color: #084923;
  --success-light-color: #227645;
  --text-color: #333;
  --text-medium: #666;
  --text-light: #fff;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: var(--primary-color);
  --shadow: 0 1.5px 7.5px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 3.75px 15px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-light);
  margin: 0;
  padding: 0;
}

/* Header - Sidebar */
.sidebar-header {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: auto;
  background: transparent;
  border: 1.5px solid var(--primary-color);
  z-index: 100;
  border-radius: 0 11.25px 11.25px 0;
  box-shadow: var(--shadow);
  transition: width 0.3s ease, background 0.3s ease;
}

.sidebar-header:hover {
  width: 165px;
  background: rgba(185, 144, 53, 0.1);
}

.sidebar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.125rem 0;
  height: 100%;
}

.logo-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: bold;
  gap: 0.375rem;
  cursor: pointer;
  transition: all 0.3s;
}

.logo-sidebar i {
  font-size: 1.875rem;
  color: var(--primary-color);
  transition: color 0.3s;
}

.logo-img {
  width: 1.875rem;
  height: 1.875rem;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo-text {
  font-size: 0.6rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-header:hover .logo-text {
  opacity: 1;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.sidebar-footer i {
  font-size: 1.35rem;
  color: var(--primary-color);
  transition: color 0.3s;
}

.copyright-text {
  font-size: 0.5625rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  line-height: 1.2;
}

.sidebar-header:hover .copyright-text {
  opacity: 1;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  align-items: center;
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 45px;
  height: 37.5px;
  position: relative;
  white-space: nowrap;
}

.sidebar-header:hover .nav-link {
  width: 150px;
  justify-content: flex-start;
  padding: 0.5625rem 1.125rem;
  gap: 0.75rem;
}

.nav-link i {
  font-size: 1.65rem;
  color: var(--primary-color);
  transition: color 0.3s;
  flex-shrink: 0;
}

.nav-text {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.7125rem;
  font-weight: 500;
  position: absolute;
  left: 52.5px;
  white-space: nowrap;
}

.sidebar-header:hover .nav-text {
  opacity: 1;
}

.nav-link:hover {
  background: rgba(185, 144, 53, 0.15);
}

.nav-link.active {
  background: rgba(185, 144, 53, 0.25);
  border-left: 2.25px solid var(--primary-color);
  padding-left: 2.25px;
}

.nav-link.active i {
  color: var(--primary-color);
}

.nav-link:hover i {
  color: var(--primary-color);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

@media (max-width: 576px) {
  .sidebar-header {
    width: 52.5px;
    border-radius: 0 7.5px 7.5px 0;
  }

  .sidebar-header:hover {
    width: 150px;
  }

  .nav-link {
    width: 37.5px;
    height: 33.75px;
  }

  .sidebar-header:hover .nav-link {
    width: 127.5px;
    padding: 0.375rem 0.75rem;
  }

  .nav-link i {
    font-size: 0.975rem;
  }

  .container {
    padding: 0.75rem;
  }

  .logo-sidebar {
    margin-bottom: 0.75rem;
  }

  .sidebar-nav {
    gap: 0.75rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-container {
    flex-direction: column;
    gap: 1.125rem;
  }

  .hero-logo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 150px;
  }

  .hero-content {
    flex: 0 0 auto;
    width: 100%;
    z-index: 2;
  }
}

@media (max-width: 360px) {
  .sidebar-header {
    width: 45px;
  }

  .sidebar-header:hover {
    width: 135px;
  }

  .nav-link {
    width: 33.75px;
    height: 30px;
  }

  .sidebar-header:hover .nav-link {
    width: 112.5px;
    padding: 0.3rem 0.6rem;
  }

  .nav-link i {
    font-size: 0.9rem;
  }

  .nav-text {
    font-size: 0.6375rem;
  }

  .container {
    padding: 0.375rem;
  }

  .logo-sidebar {
    margin-bottom: 0.6rem;
  }

  .sidebar-nav {
    gap: 0.6rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  color: var(--primary-color);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 7.5px 7.5px 0 0;
  margin-bottom: 0;
  background-size: cover;
  background-position: center;
  min-height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 1.125rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.hero-logo {
  flex: 0 0 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 60%;
  height: auto;
  object-fit: contain;
  max-width: 150px;
}

.hero-content {
  flex: 0 0 80%;
  position: relative;
  z-index: 2;
  color: var(--primary-color);
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 0.9rem;
  opacity: 0.9;
  color: var(--primary-color);
}

/* Ensure hero content text is always light colored on all pages */
.hero .hero-content h1,
.hero .hero-content p,
.hero .hero-content span,
.hero .hero-content div {
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--text-color);
  color: white;
  padding: 1.5rem;
  text-align: center;
  margin-top: 3rem;
  width: 100%;
  box-sizing: border-box;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 0.75rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.loading {
  text-align: center;
  padding: 3rem 0;
  padding-top: 0;
}

.spinner {
  border: 3px solid var(--bg-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 37.5px;
  height: 37.5px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-medium);
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

/* Primary Button Styles */
/* ===== BUTTON SYSTEM ===== */
/* Base Button Styles */
.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 3.75px;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.75rem;
}

/* Primary Button Variant */
.btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-light-color);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  background: var(--text-medium);
  cursor: not-allowed;
  transform: none;
}


/* Primary Backup Button Outline Variant */
.btn-primary-backup-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.btn-primary-backup-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-hover);
}

.btn-primary-backup-outline:active {
  transform: translateY(0);
}

.btn-primary-backup-outline:disabled {
  border-color: var(--text-medium);
  color: var(--text-medium);
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button */
.btn-secondary {
  background: var(--text-medium);
  color: var(--text-light);
  border: none;
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: var(--text-color);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn-secondary:disabled {
  background: var(--text-medium);
  cursor: not-allowed;
  transform: none;
}

/* Button Size Modifiers */
.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.65625rem;
}

.btn-medium {
  padding: 0.5625rem 1.5rem;
  font-size: 0.75rem;
}

/* ===== BADGE SYSTEM ===== */
/* Base Badge Styles */
.badge {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: none;
}


/* Primary Backup Badge Outline Variant */
.badge-primary-backup-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.badge-primary-backup-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.badge-primary-backup-outline:active {
  opacity: 0.9;
}

/* Badge Size Modifiers */
.badge-small {
  padding: 0.2625rem 0.5625rem;
  font-size: 0.6375rem;
  border-radius: 15px;
}

.badge-large {
  padding: 0.5625rem 1.125rem;
  font-size: 0.675rem;
  border-radius: 18.75px;
}

/* Active State */
.badge.active {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.btn.active {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* Hover/Active animations for size variants */
.btn-medium:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-hover);
}

.btn-medium:active {
  transform: translateY(0);
}

.btn-small:hover {
  transform: scale(1.05);
}

.btn-small:active {
  transform: scale(0.95);
}

.badge-large:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-hover);
}

.badge-large:active {
  transform: translateY(0);
}

.badge-small:hover {
  transform: scale(1.05);
}

.badge-small:active {
  transform: scale(0.95);
}

/* Active state for backup outline badges (high specificity) */
.badge-primary-backup-outline.active {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.125rem;
  border-radius: 6px;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
  font-weight: 500;
}

@keyframes slideIn {
  from {
    transform: translateX(300px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(300px);
    opacity: 0;
  }
}

/* Responsive - handled by media queries above */

