/* 
CSS Reset and Base Styles
*/

/* Note: Color variables are now imported from colors.css */

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--color-haze);
}

/* Document */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: "Montserrat", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Body */
body {
  margin: 0;
  line-height: 1.5;
  font-family: "Montserrat", sans-serif;
  color: var(--color-coal);
  background-color: var(--color-white);
}

/* Typography */
h1 {
  font-size: 2.5rem; /* ~40px on desktop */
  font-weight: bold;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

h4, h5, h6 {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: inherit;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-sunset);
}

/* Lists */
ol, ul, dl {
  margin: 0.2rem 0 0.8rem 0;
  padding: 0;
  list-style: none;
}

/* Images and media */
img,
video {
  max-width: 100%;
  height: auto;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 0.5rem;
  text-align: left;
}

/* Forms */
button,
input,
optgroup,
select,
textarea {
  font-family: "Montserrat", sans-serif;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

/* Form field styling */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
input[type="search"],
input:not([type]),
select,
textarea {
  background-color: white !important;
  padding: 0.5rem;
  border: 1px solid var(--color-haze);
  border-radius: 0.25rem;
  width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Logo and image styling */
.logo-image {
  height: 80px !important;
  width: 112px !important;
  max-height: 80px !important;
  object-fit: contain !important;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Hero section */
.hero-section {
  background: linear-gradient(90deg, rgba(13, 24, 28, 0.5) 0%, var(--color-coal) 100%);
  color: var(--color-snow);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 50%;
}

.ready-logo-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 50%;
}

.ready-logo {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(242, 138, 64, 0.3));
}

.hero-cta {
  display: inline-block;
  background-color: var(--color-sunset);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.hero-cta:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Features section */
.features-section {
  background-color: white;
  padding: 6rem 0;
}

.feature-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

/* Testimonial section */
.testimonial-section {
  background-color: var(--color-snow);
  padding: 6rem 0;
}

.testimonial-card {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin: 0 1rem;
}

/* Call to action section */
.cta-section {
  background-color: var(--color-coal);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

/* Improved responsive layout */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

  .features-section,
  .testimonial-section,
  .cta-section {
    padding: 4rem 0;
  }
}

/* Hero text styling */
.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .md\:text-6xl {
    font-size: 3.5rem;
    line-height: 1.1;
  }
}

/* Layout Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.justify-center {
  justify-content: center;
}

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

.justify-end {
  justify-content: flex-end;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
}

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

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

/* Spacing */
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Visual Elements */
.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Border */
.border {
  border-width: 1px;
}

.border-gray-300 {
  border-color: var(--color-haze);
}

/* Background Colors */
.bg-white {
  background-color: var(--color-white);
}

.bg-black {
  background-color: var(--color-coal);
}

.bg-gray-100 {
  background-color: var(--color-cloud);
}

.bg-gray-200 {
  background-color: var(--color-haze);
}

.bg-blue-500 {
  background-color: var(--color-sunset);
}

.bg-blue-600 {
  background-color: var(--color-sunset);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-500 {
  --tw-gradient-from: var(--color-sunset);
  --tw-gradient-to: rgba(242, 138, 64, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-indigo-600 {
  --tw-gradient-to: var(--color-gold);
}

/* Text Colors */
.text-white {
  color: var(--color-white);
}

.text-gray-600 {
  color: var(--color-coal);
}

.text-gray-500 {
  color: var(--color-haze);
}

.text-gray-400 {
  color: var(--color-mist);
}

.text-blue-500 {
  color: var(--color-sunset);
}

.text-blue-600 {
  color: var(--color-sunset);
}

.text-yellow-400 {
  color: var(--color-gold);
}

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

.font-bold {
  font-weight: 700;
}

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

.font-normal {
  font-weight: 400;
}

.underline {
  text-decoration-line: underline;
}

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Hover States */
.hover\:bg-blue-600:hover {
  background-color: var(--color-gold);
}

.hover\:bg-blue-700:hover {
  background-color: var(--color-gold);
}

.hover\:bg-gray-100:hover {
  background-color: var(--color-snow);
}

.hover\:text-blue-400:hover {
  color: var(--color-gold);
}

.hover\:text-gray-700:hover {
  color: var(--color-coal);
}

.hover\:text-gray-900:hover {
  color: var(--color-coal);
}

/* Focus States */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: var(--color-sunset);
}

/* Custom Color Utilities */
.bg-coal {
  background-color: var(--color-coal);
}
.bg-sunset {
  background-color: var(--color-sunset);
}
.bg-white {
  background-color: var(--color-white);
}
.bg-mist {
  background-color: var(--color-mist);
}
.bg-haze {
  background-color: var(--color-haze);
}
.bg-cloud {
  background-color: var(--color-cloud);
}
.bg-snow {
  background-color: var(--color-snow);
}
.bg-gold {
  background-color: var(--color-gold);
}
.bg-olive {
  background-color: var(--color-olive);
}
.bg-flame {
  background-color: var(--color-flame);
}

/* Text color utilities */
.text-coal {
  color: var(--color-coal);
}
.text-sunset {
  color: var(--color-sunset);
}
.text-white {
  color: var(--color-white);
}
.text-mist {
  color: var(--color-mist);
}
.text-haze {
  color: var(--color-haze);
}
.text-cloud {
  color: var(--color-cloud);
}
.text-snow {
  color: var(--color-snow);
}
.text-gold {
  color: var(--color-gold);
}
.text-olive {
  color: var(--color-olive);
}
.text-flame {
  color: var(--color-flame);
}

/* Border color utilities */
.border-coal {
  border-color: var(--color-coal);
}
.border-sunset {
  border-color: var(--color-sunset);
}
.border-white {
  border-color: var(--color-white);
}
.border-mist {
  border-color: var(--color-mist);
}
.border-haze {
  border-color: var(--color-haze);
}
.border-cloud {
  border-color: var(--color-cloud);
}
.border-snow {
  border-color: var(--color-snow);
}
.border-gold {
  border-color: var(--color-gold);
}
.border-olive {
  border-color: var(--color-olive);
}
.border-flame {
  border-color: var(--color-flame);
}

/* Responsive Typography */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {

/* Global font override to ensure Montserrat is used throughout the app */
body, html, button, input, select, textarea, 
h1, h2, h3, h4, h5, h6, p, span, div, a, label,
.font-family-primary, form, .form-group, .text-sm {
  font-family: "Montserrat", sans-serif !important;
}

/* Preserve icons from font libraries */
.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before,
.fa::before,
[class^="fa-"]::before,
[class*=" fa-"]::before {
  font-family: inherit !important;
}

  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

/* Custom header styling */
header {
  background-color: var(--color-snow);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow-x: hidden;
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

header .logo-container {
  margin-left: 0.5rem;
}

header .logo-container img {
  width: 112px !important;
  height: 80px !important;
}

header img:not(.logo-image) {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Beta banner */
.beta-banner {
  background-color: var(--color-gold);
  color: var(--color-coal);
  text-align: center;
  padding: 0.25rem 0;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Navigation styling */
/* Desktop navigation - only show on md+ screens */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 0.5rem;
  }
}

.nav-link {
  color: var(--color-coal);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

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

.btn-login {
  background-color: var(--color-gold);
  border: 1px solid var(--color-gold);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-login:hover {
  background-color: var(--color-sunset);
  border-color: var(--color-sunset);
}

.btn-signup {
  background-color: var(--color-sunset);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-signup:hover {
  background-color: var(--color-gold);
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }

  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }

  h1 {
    font-size: 2rem; /* ~32px on tablet */
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

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

  .md\:w-1\/3 {
    width: 33.333333%;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .lg\:flex-row {
    flex-direction: row;
  }

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

  .lg\:w-1\/2 {
    width: 50%;
  }

  .lg\:mb-0 {
    margin-bottom: 0;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem; /* ~24px on mobile */
  }

  h2 {
    font-size: 1.375rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .text-4xl {
    font-size: 1.875rem;
  }

  .text-3xl {
    font-size: 1.5rem;
  }
}

/* Dashboard Styles */
.sidebar {
  background-color: var(--color-coal);
  color: var(--color-snow);
}

/* Desktop sidebar - ONLY on desktop screens */
@media (min-width: 768px) {
  .desktop-sidebar .sidebar {
    min-height: 100vh;
    width: 250px;
  }
}

.sidebar a {
  color: var(--color-snow);
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-snow);
}

.sidebar a.bg-gray-900 {
  background-color: rgba(255, 255, 255, 0.15);
}

.sidebar svg {
  color: var(--color-snow);
  opacity: 0.7;
  width: 18px !important;
  height: 18px !important;
}

.sidebar a:hover svg {
  opacity: 1;
}

.sidebar .logo-image {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
}

.dashboard-content {
  background-color: var(--color-snow);
  flex: 1;
}

/* Footer */
footer {
  background-color: var(--color-coal);
  color: var(--color-snow);
  padding: 3rem 0 2rem;
}

footer h3 {
  color: var(--color-snow);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
}

footer p, 
footer address,
footer div,
footer span,
footer li,
footer .text-sm,
footer .text-white {
  color: var(--color-snow) !important;
}

footer a,
footer a.text-white {
  color: var(--color-snow) !important;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--color-gold) !important;
  text-decoration: none;
}

footer .social-links a {
  margin-right: 1rem;
  font-size: 1.25rem;
  display: inline-block;
}

footer input[type="email"] {
  color: var(--color-coal);
  background-color: var(--color-white);
  border: none;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

.text-white {
  color: var(--color-white);
}

.text-gray-600 {
  color: var(--color-coal);
}

.text-gray-500 {
  color: var(--color-haze);
}
/* Mobile Responsive Dashboard Tables */
@media (max-width: 768px) {
  /* Make dashboard tables responsive by converting to card layout */
  .container table,
  table[style*="table-layout: fixed"] {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
  }
  
  .container table colgroup,
  .container table thead,
  table colgroup,
  table thead {
    display: none !important;
  }
  
  .container table tbody,
  table tbody {
    display: block !important;
    width: 100% !important;
  }
  
  .container table tr,
  table tr {
    display: block !important;
    margin-bottom: 1rem !important;
    border: 1px solid var(--color-mist) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    background: white !important;
  }
  
  .container table td,
  table td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 0.5rem 0 !important;
    text-align: left !important;
  }
  
  .container table td:first-child,
  table td:first-child {
    font-size: 1.125rem !important;
    font-weight: bold !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--color-mist) !important;
  }
  
  .container table td:nth-child(2),
  table td:nth-child(2) {
    margin-bottom: 0.75rem !important;
  }
  
  .container table td:nth-child(3),
  table td:nth-child(3) {
    display: flex !important;
    justify-content: center !important;
    margin: 1rem 0 !important;
  }
  
  .container table td:last-child,
  table td:last-child {
    display: flex !important;
    justify-content: center !important;
    margin-top: 1rem !important;
  }
  
  
  /* Make dashboard heading responsive */
  .container h1 {
    font-size: 1.75rem !important;
  }
  
  .container h2 {
    font-size: 1.25rem !important;
  }
  
  .container p.text-xl {
    font-size: 1rem !important;
  }
}

/* Mobile Responsive Home Page */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0 !important;
  }
  
  .hero-section .container {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .hero-content {
    width: 100% !important;
    margin-bottom: 2rem !important;
  }
  
  .ready-logo-container {
    width: 100% !important;
    justify-content: center !important;
  }
  
  .ready-logo {
    max-width: 500px !important;
    width: 100% !important;
  }
  
  .hero-cta {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  
  .hero-section h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-section p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(13, 24, 28, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 56rem;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-mist);
  position: sticky;
  top: 0;
  background-color: white;
  border-radius: 0.5rem 0.5rem 0 0;
  z-index: 10;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-coal);
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-coal);
  transition: color 0.2s;
  border-radius: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--color-sunset);
  background-color: var(--color-cloud);
}

.modal-content {
  overflow-y: auto;
  padding: 0;
  flex: 1;
}

.modal-content > div {
  padding: 0 !important;
}

.modal-content .container {
  max-width: 100% !important;
  padding: 1.5rem !important;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
  .modal-container {
    max-height: 95vh;
    margin: 0.5rem;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-content .container {
    padding: 1rem !important;
  }
}
