@import url('https://fonts.googleapis.com/css2?family=National+Park:wght@200..800&family=Niramit:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root {
  --primary: #16a34a;          /* Emerald 600 */
  --primary-light: #d1fae5;    /* Emerald 100 */
  --primary-dark: #065f46;     /* Emerald 900 */
  --secondary: #059669;        /* Emerald 500 */
  --light: #f9fafb;            /* Neutral background */
  --dark: #111827;             /* Slate 900 */
  --gray: #6b7280;             /* Gray 500 */
  --light-gray: #e5e7eb;       /* Gray 200 */
  --success: #22c55e;          /* Emerald 500 (vivid success) */
  --error: #ef4444;            /* Red 500 */
  --warning: #f59e0b;          /* Amber 500 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Niramit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  line-height: 1.5;
  color: var(--dark);
  background-color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* Header */
.main-header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
}

/* Equal Width Letters */
.logo-letter {
  font-weight: 700;
  font-size: 1.5rem;
  padding: 0.25rem 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2.5rem;
  transition: var(--transition);
  line-height: 1;
  text-align: center;
  /* Remove radius from all letters by default */
  border-radius: 0;
}

/* First letter - left rounded */
.logo-letter:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

/* Last letter - right rounded */
.logo-letter:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Hover effect */
.logo:hover .logo-letter {
  transform: translateY(-2px);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--gray);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn i {
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: #FFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-danger {
  background-color: var(--error);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-round {
    margin-top: 3px !important;
    border-radius: 55px !important;
    line-height: 2rem !important;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.table th, .table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.table th {
  font-weight: 600;
  color: var(--dark);
  background-color: #f8fafc;
}

.table tr:hover td {
  background-color: #f8fafc;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: #ecfdf5;
  color: var(--success);
}

.badge-warning {
  background-color: #fffbeb;
  color: var(--warning);
}

/* Utility classes */
.text-muted {
  color: var(--gray);
}

.text-sm {
  font-size: 0.875rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

/* Dashboard specific */
.welcome-card {
  position: relative;
  color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: url('https://www.toptal.com/designers/subtlepatterns/uploads/y-so-serious-white.png');
  background-repeat: repeat;
}

/* Gradient overlay layer */
.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.7; /* Adjust for desired intensity */
  z-index: 0;
}

.welcome-card h1,
.welcome-card p {
  color: white;
  position: relative;
  z-index: 1;
}

.welcome-card p.subtext {
  opacity: 0.9;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Message content toggle */
.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.toggle-content.active {
  max-height: 500px;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: var(--radius);
}

/* Footer */
.main-footer {
    background-color: rgba(15,20,29,0.9); /* Dark slate */
    background-image: url('https://www.toptal.com/designers/subtlepatterns/uploads/stripes-light.png');
    background-repeat: repeat;
    background-blend-mode: overlay; /* Optional: enhances the contrast with bg */
    color: #f8fafc; /* Light text */
    padding: 3rem 0 0;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.footer-brand {
    max-width: 300px;
}

/* Footer Logo Container */
.footer-logo-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

/* Footer Logo Styles */
.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-container {
    justify-content: flex-start;
}

.footer-logo .logo-letter {
  font-size: 2rem;
  width: 2rem;
  height: 3rem;
}

/* Tagline Styles */
.logo-tagline {
    display: block;
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
    max-width: 100%;
    text-align: left;
    padding-left: 0.2rem;
}


.footer-logo .logo-letter:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.footer-logo .logo-letter:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Social Icons */
.footer-social {
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-letter {
    font-size: 1.2rem;
    width: 2rem;
    height: 2rem;
  }
  
  .footer-logo .logo-letter {
    font-size: 1.5rem;
    width: 2rem;
    height: 2.5rem;
  }
}

.footer-social a {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: var(--transition);
    margin-right: 15px;
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary);
}

.footer-newsletter p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: none;
    background-color: #334155;
    color: white;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    padding: 0 1rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal span {
    color: #475569;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav {
    gap: 1rem;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert.error {
    background-color: #fee2e2;
    color: var(--error);
    border-left: 4px solid var(--error);
}

.alert.success {
    background-color: #ecfdf5;
    color: var(--success);
    border-left: 4px solid var(--success);
}

/* Grid utilities */
.grid {
    display: grid;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Text utilities */
.text-center {
    text-align: center;
}

.font-semibold {
    font-weight: 600;
}

/* Auth wrapper */
.auth-wrapper {
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

/* Preformatted text */
pre {
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* Policy/Terms Pages */
.policy-content, .terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.policy-list, .terms-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-list li, .terms-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.policy-list li::before, .terms-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2 i {
    font-size: 1.2rem;
}

.lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.policy-updates, .terms-updates {
    background-color: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 3rem;
    border-left: 4px solid var(--primary);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray);
    margin-bottom: 2rem;
}

.bg-light {
    background-color: var(--primary-light);
}

/* Contact Form Styles */
#contactForm {
    max-width: 600px;
    margin: 0 auto;
}

.form-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.g-recaptcha {
    margin: 1rem 0;
}

/* Response Messages */
#formResponse {
    min-height: 50px;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert.success {
    background-color: #ecfdf5;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert.error {
    background-color: #fee2e2;
    color: var(--error);
    border-left: 4px solid var(--error);
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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