/* Base Styles */
:root {
  /* Legacy color variables */
  --navy-900: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --white: #FFFFFF;
  --accent-primary: #38BDF8;
  --accent-hover: #0EA5E9;
  --green-400: #4ADE80;
  --green-900: #14532D;
  --red-400: #F87171;
  --red-300: #FCA5A5;
  
  /* Updated Tailwind color palette for HyperRender */
  --background: #0F172A;      /* bg-slate-900 */
  --surface: #1E293B;         /* bg-slate-800 */
  --surface-dark: #0F172A;    /* for nested dark containers */
  --cardHighlight: #334155;   /* header bg or accordion toggle */
  --text-primary: #F8FAFC;    /* text-slate-50 */
  --text-secondary: #94A3B8;  /* text-slate-400 */
  --border-color: #334155;    /* border-slate-700 */
  --primary: #2563EB;         /* buttons, CTAs */
  --primary-hover: #1D4ED8;
  --iconCircle: #0EA5E9;      /* step number background */
  --icon-default: #64748B;    /* slate-500 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Auth Page Styles */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 1200px;
}

.auth-content {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .auth-content {
    flex-direction: row;
  }
}

.auth-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-info h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.auth-logo .logo-icon {
  margin-right: 1rem;
}

.auth-logo h1 {
  margin-bottom: 0;
}

.auth-info p {
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.auth-form-container {
  padding: 1rem;
}

@media (min-width: 992px) {
  .auth-info, .auth-form-container {
    flex: 1;
  }
}

.auth-form-content {
  background-color: var(--navy-800);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-form-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--navy-600);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  text-align: center;
}

.auth-tab.active {
  color: var(--white);
  border-bottom: 2px solid var(--accent-primary);
}

.auth-error {
  color: var(--red-400);
  background-color: rgba(248, 113, 113, 0.1);
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-group {
    gap: 0.75rem; /* More spacing between label and input on mobile */
    margin-bottom: 2rem; /* More spacing between form groups on mobile */
  }
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .form-group label {
    font-size: 1rem;
    font-weight: 500;
  }
}

.form-group input,
.form-group select {
  background-color: var(--navy-700);
  color: var(--white);
  border: 1px solid var(--navy-600);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .form-group input,
  .form-group select {
    padding: 0.875rem 1rem; /* Larger touch target */
    font-size: 1rem; /* Larger text for readability */
    min-height: 3rem; /* Ensures good touch target size */
  }
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.auth-button {
  width: 100%;
  background-color: var(--white);
  color: var(--navy-900);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

@media (max-width: 768px) {
  .auth-button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-height: 3rem; /* Larger touch target */
  }
}

.auth-button:hover {
  background-color: var(--gray-200);
}

.auth-button:active {
  transform: translateY(1px);
  background-color: var(--gray-300);
}

/* Dashboard Page Styles */
.dashboard-page {
  height: 100vh;
  overflow: hidden;
}

.dashboard-container {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  background-color: var(--navy-800);
  color: var(--white);
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-sidebar {
  display: none; /* Hidden by default on desktop */
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  color: var(--gray-300);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 110;
}

/* Sidebar Styles */
.sidebar {
  width: 260px;
  background-color: var(--navy-800);
  border-right: 1px solid var(--navy-700);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* Mobile sidebar styles */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .close-sidebar {
    display: block;
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    max-width: 300px;
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  /* Add overlay when sidebar is open */
  body.sidebar-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
}

.sidebar-logo {
  padding: 1rem;
  border-bottom: 1px solid var(--navy-700);
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  #background-color: var(--accent-primary);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--white);
}

.logo-icon i {
  font-size: 1.25rem;
  color: white;
}

.logo-icon.large {
  width: 3rem;
  height: 3rem;
}

.logo-icon.large i {
  font-size: 1.75rem;
}

.sidebar-logo a {
  display: block;
  line-height: 0;
}

.sidebar-logo a img {
  width: 85%;
}

.sidebar-logo h1 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--gray-300);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.sidebar-item:hover {
  background-color: var(--navy-700);
  color: var(--white);
}

.sidebar-item.active {
  border-left-color: var(--accent-primary);
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--white);
}

.sidebar-item i {
  width: 1.25rem;
  margin-right: 0.75rem;
  text-align: center;
}

.user-info {
  padding: 1rem;
  border-top: 1px solid var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  background-color: var(--navy-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: var(--white);
  font-weight: 500;
}

.user-details p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
}

.logout-button {
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
}

.logout-button:hover {
  color: var(--white);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  background-color: var(--background);
  transition: padding 0.3s ease;
  width: 100%;
}

/* Mobile main content adjustments */
@media (max-width: 767px) {
  .main-content {
    padding: 1rem;
    padding-top: 3.5rem; /* Add space for the hamburger menu */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  
  /* Improve spacing for content sections on mobile */
  .content-section {
    margin-bottom: 2rem;
  }
  
  .dashboard-container {
    flex-direction: column;
  }
  
  /* Padding adjustments for dashboard page when sidebar is open */
  body.sidebar-open .main-content {
    opacity: 0.7;
    pointer-events: none;
  }
}

.content-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.search-box {
  color: var(--gray-400);
  padding: 0.5rem;
  cursor: pointer;
}

.search-box:hover {
  color: var(--white);
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.page-title {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stats-card {
  background-color: var(--navy-800);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .stats-card {
    padding: 1.25rem;
  }
}

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

@media (max-width: 768px) {
  .card-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .card-header-flex > *:last-child {
    align-self: flex-end;
  }
}

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.add-credits-button {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .add-credits-button {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem; /* Larger touch target */
    min-height: 2rem; /* Ensure minimum height for touch */
  }
}

.add-credits-button:hover {
  background-color: rgba(37, 99, 235, 0.2);
  color: var(--accent-hover);
  cursor: pointer;
}

.add-credits-button:active {
  transform: translateY(1px);
  background-color: rgba(37, 99, 235, 0.3);
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 768px) {
  .card-value {
    font-size: 1.25rem; /* Slightly smaller on mobile */
  }
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Usage Section */
.usage-section {
  background-color: var(--navy-800);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.25rem; /* Slightly larger font for readability */
    margin-bottom: 1rem; /* Tighter spacing on mobile */
  }
}

.usage-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16rem;
  color: var(--gray-400);
}

/* Content Cards */
.content-card {
  background-color: var(--navy-800);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

@media (max-width: 768px) {
  .content-card {
    margin-bottom: 1rem;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--navy-700);
}

@media (max-width: 640px) {
  .card-header {
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  /* Improve mobile layout for action buttons */
  .card-header > * + * {
    align-self: stretch; /* Full width on mobile */
  }

  /* Make action buttons full width on small screens */
  .card-header .action-button {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

.card-body {
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .card-body {
    padding: 1.25rem .25rem;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: var(--gray-400);
  text-align: center;
}

@media (max-width: 768px) {
  .empty-state {
    padding: 2rem 1rem;
    font-size: 0.9375rem;
  }
  
  .empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem; /* Reduced spacing for mobile */
  }
  
  /* Add better touch spacing for any buttons in empty states */
  .empty-state .action-button {
    margin-top: 1rem;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
  }
}

/* Tables */
/* Table responsive container */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  background-color: var(--navy-800);
  position: relative; /* For scroll indicators */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: var(--navy-600) var(--navy-800); /* For Firefox */
}

.table-responsive::-webkit-scrollbar {
  height: 6px; /* Thin scrollbar for webkit browsers */
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--navy-800);
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: var(--navy-600);
  border-radius: 6px;
}

/* Add a subtle shadow to indicate scrollability on mobile */
@media (max-width: 768px) {
  .table-responsive {
    /* Remove the gradient as it conflicts with table background */
    /* Instead add a subtle box shadow to indicate scrollability */
    box-shadow: inset -8px 0 6px -6px rgba(0, 0, 0, 0.2);
  }
  
  /* Add a visual indicator when table can be scrolled */
  .table-responsive::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1));
    pointer-events: none; /* Allows clicking through this element */
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px; /* Ensures table doesn't get too squished */
}

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

/* Add touch feedback for table rows */
.data-table tbody tr {
  transition: background-color 0.15s ease-in-out;
}

.data-table tbody tr:hover {
  background-color: var(--navy-700);
}

@media (max-width: 768px) {
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}

.data-table th {
  background-color: var(--navy-600);
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .data-table th {
    white-space: nowrap; /* Prevent header text wrapping */
    font-size: 0.7rem; /* Slightly smaller font for mobile */
    padding: 0.75rem 0.5rem; /* Tighter padding */
    letter-spacing: 0.03em; /* Tighter letter spacing */
  }
}

.data-table td {
  color: var(--white);
}

@media (max-width: 768px) {
  .data-table td {
    max-width: 140px; /* Limit width on mobile */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    white-space: nowrap; /* Prevent wrapping */
  }
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 500;
}

@media (max-width: 768px) {
  .status-badge {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }
}

.status-badge.active {
  background-color: rgba(74, 222, 128, 0.2);
  color: var(--green-400);
}

/* Buttons */
.action-button {
  background-color: var(--accent-primary);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

@media (max-width: 768px) {
  .action-button {
    padding: 0.625rem 1.125rem; /* Larger touch target */
    font-size: 0.9375rem; /* Slightly larger text */
    min-height: 2.75rem; /* Ensure minimum height for touch */
    min-width: 8rem; /* Ensure minimum width for touch */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Button spacing already handled in card-header media query */
}

.action-button:hover {
  background-color: var(--accent-hover);
}

.action-button:active {
  transform: translateY(1px);
  background-color: var(--accent-hover);
}

.full-width {
  width: 100%;
}

.text-button {
  background: transparent;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0.5rem;
  transition: color 0.2s;
}

@media (max-width: 768px) {
  .text-button {
    padding: 0.625rem; /* Larger touch target */
    font-size: 0.9375rem; /* Slightly larger text */
    min-height: 2.5rem; /* Ensure minimum height for touch */
  }
}

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

.text-button:active {
  transform: translateY(1px);
  color: var(--white);
}

.text-button.danger {
  color: var(--red-400);
}

.text-button.danger:hover {
  color: var(--red-300);
}

/* Calculator Form */
.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-card {
  background-color: var(--navy-700);
  border-radius: 0.375rem;
  padding: 1rem;
  margin-top: 1rem;
}

.result-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

/* Settings Form */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 32rem;
}

.security-form {
  display: flex;
  flex-direction: column;
  max-width: 32rem;
}

/* FAQ Section */
.faq-section {
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.support-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-700);
}

.section-description {
  color: var(--gray-400);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Download Section */
.download-section {
  text-align: center;
  padding: 2rem 0;
}

/* Auth Success Message */
.auth-success {
  color: var(--green-400);
  background-color: rgba(74, 222, 128, 0.1);
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  display: none;
}

/* reCAPTCHA Container */
.recaptcha-container {
  margin-bottom: 1rem;
  min-height: 78px;
  display: flex;
  justify-content: center;
}

/* Terms and Conditions Checkbox */
.terms-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.terms-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid var(--gray-400);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.terms-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.terms-checkbox input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  font-size: 12px;
  top: -1px;
  left: 2px;
  color: white;
}

.terms-checkbox label {
  font-size: 0.875rem;
  margin: 0;
  color: var(--gray-300);
}

.terms-link {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.terms-link:hover {
  color: var(--accent-hover);
}

.reset-link {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: color 0.2s;
  font-size: 0.875rem;
}

.reset-link:hover {
  color: var(--accent-hover);
}

/* Updated Verify Email Page Styles */
/* Navbar */
.navbar {
  background-color: var(--background);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo h1 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 0.75rem;
}

.navbar-btn {
  color: var(--text-secondary);
  background: transparent;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
}

.navbar-btn:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.navbar-btn:hover {
  color: var(--text-primary);
}

.navbar-btn:hover:after {
  width: 100%;
}

/* Main Container */
.verify-page {
  background-color: var(--background);
  min-height: 100vh;
}

.main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Verification Card */
.verification-card {
  background-color: var(--surface);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-line);
}

.verification-card h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.verification-message {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.verification-helper {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.verification-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.reset-password-card {
  font-size: 1.5rem;
}

.reset-password-success {
}

.primary-button {
  background-color: var(--button-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background-color: var(--button-hover);
}

.primary-button:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.secondary-button {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-line);
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.secondary-button:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.verification-status {
  color: var(--button-primary);
  background-color: rgba(37, 99, 235, 0.1);
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-top: 1rem;
}

/* Next Steps Section */
.next-steps-section {
  margin-top: 2rem;
}

.next-steps-section h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
  }
}

.step-card {
  position: relative;
  background-color: var(--surface);
  border-radius: 0.75rem;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-line);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  color: var(--button-primary);
  font-size: 1.25rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.step-lock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--icon-default);
  cursor: help;
}

/* Onboarding Page Styles - Updated with Tailwind Color Spec */
.onboarding-content {
  background-color: var(--surface);
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-line);
}

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

.welcome-container {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-line);
}

.welcome-container h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.welcome-container h2 .text-success {
  color: var(--green-400);
}

.welcome-message {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.onboarding-steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.onboarding-step {
  background-color: var(--surface);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.onboarding-step.completed {
  border: 1px solid var(--green-400);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--cardHighlight);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--iconCircle);
  border-radius: 50%;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.step-content {
  padding: 1.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.step-action {
  margin-top: 1.75rem;
}

/* Removed duplicate action-button style - using the primary definition from above */

.action-button.success-button {
  background-color: var(--green-400);
}

.action-button.success-button:hover {
  background-color: var(--green-900);
}

.key-display {
  margin-top: 1.75rem;
  background-color: var(--cardHighlight);
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border-line);
}

.key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.key-value span {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--iconCircle);
  letter-spacing: 1px;
}

.key-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.system-requirements {
  list-style: none;
  margin: 1.25rem 0;
  padding-left: 0.5rem;
}

.system-requirements li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.system-requirements li i {
  color: var(--green-400);
  margin-right: 0.75rem;
  font-size: 1rem;
}

.collapsible-header {
  background-color: var(--cardHighlight);
  color: var(--text-primary);
  padding: 1.25rem;
  border: none;
  text-align: left;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.collapsible-header:hover {
  background-color: var(--border-line);
}

.collapsible-header i {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.open {
  max-height: 1000px;
}

.setup-instructions {
  padding: 1.75rem;
  background-color: var(--surface);
  border-radius: 0 0 0.5rem 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid var(--border-line);
  border-top: none;
}

.setup-instructions h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.setup-instructions h4:first-child {
  margin-top: 0;
}

.setup-instructions ol,
.setup-instructions ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.setup-instructions li {
  margin-bottom: 0.5rem;
  color: var(--gray-300);
}

.setup-complete {
  text-align: center;
  padding: 2.5rem;
  background-color: var(--surface);
  border-radius: 0.5rem;
  margin-top: 2rem;
  border: 1px solid var(--green-400);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.complete-message {
  margin-bottom: 2rem;
}

.complete-message i {
  font-size: 4rem;
  color: var(--green-400);
  margin-bottom: 1.25rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.complete-message h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.complete-message p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.progress-bar-container {
  height: 0.5rem;
  background-color: var(--cardHighlight);
  border-radius: 9999px;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.progress-bar {
  height: 100%;
  background-color: var(--green-400);
  border-radius: 9999px;
  width: 0;
  animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

/* Render Status Specific Styles */
.project-accordion {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: var(--surface);
}

.project-header {
  padding: 0.75rem 1rem;
  background-color: var(--cardHighlight);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.project-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  padding: 0.25rem 0;
}

.project-chevron {
  transition: transform 0.3s ease;
}

.project-chevron.collapsed {
  transform: rotate(-90deg);
}

.project-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.project-content.collapsed {
  max-height: 0;
}

.render-table {
  margin-bottom: 0;
}

.render-table th:first-child, 
.render-table td:first-child {
  padding-left: 1rem;
}

.render-table th:last-child, 
.render-table td:last-child {
  text-align: center;
}

.render-table tbody tr {
  transition: background-color 0.15s ease;
}

.render-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Status badge styles for render status */
/* Status badge styles specifically for render status with pill design */
.render-table .status-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem; /* Match reference padding */
  border-radius: 0.25rem; /* Less rounded, match reference */
  font-size: 0.85rem; /* Match reference size */
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  text-transform: none;
  letter-spacing: 0;
}

.status-badge.status-queued {
  background-color: #334155; /* Darker gray to match reference */
  color: white;
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 14px;
  font-weight: 500;
}

.status-badge.status-rendering {
  background-color: #2563eb; /* Blue-600 - match reference */
  color: white;
}

.status-badge.status-exporting {
  background-color: #10b981; /* Green-500 - match reference */
  color: white;
}

.status-badge.status-error {
  background-color: #ef4444; /* Red-500 - match reference */
  color: white;
}

.status-badge.status-success {
  background-color: #10b981; /* Green-500 - match reference */
  color: white;
}

.action-button {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.action-button:hover {
  background-color: rgba(220, 53, 69, 0.15);
  transform: scale(1.05);
}

/* Cancel button styled as a red circle with X (as in reference image) */
.cancel-circle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ee4444;
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
  margin: 0 auto;
  line-height: 1;
  font-weight: bold;
}

.cancel-circle-button:hover {
  transform: scale(1.05);
  background-color: #ff5555;
}

/* Mobile Responsive Render Status Cards */
/* Default: Hide mobile cards, show desktop table */
.desktop-table-view {
  display: block;
}
.mobile-card-view {
  display: none;
}

/* Shot cards for mobile view */
.shot-card {
  background-color: #0f172a;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #1e293b;
}

.shot-card:nth-child(even) {
  background-color: #131e2f;
}

.shot-card-content {
  display: flex;
  flex-direction: column;
}

.shot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.shot-number {
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  text-align: left;
}

.shot-name {
  font-size: 15px;
  margin-bottom: 8px;
  color: #e2e8f0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-status {
  text-align: left;
  margin-bottom: 8px;
}

.shot-time {
  font-size: 14px;
  color: #94a3b8;
  text-align: left;
  font-weight: normal;
}

/* Media Query for Mobile */
@media (max-width: 768px) {
  .desktop-table-view {
    display: none;
  }
  .mobile-card-view {
    display: block;
    padding: 10px;
  }
  
  /* Make cancel button larger for touch targets */
  .cancel-circle-button {
    width: 30px;
    height: 30px;
    font-size: 16px;
    min-width: 25px;
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust status badge size for mobile */
  .shot-status .status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    vertical-align: middle;
  }
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
  .shot-card {
    padding: 12px;
  }
  
  .shot-name {
    max-width: 220px;
  }
}

@media (max-width: 320px) {
  .shot-name {
    max-width: 180px;
  }
}

.action-button.resume-button {
  color: #198754;
}

.action-button.resume-button:hover {
  background-color: rgba(25, 135, 84, 0.15);
}

.no-renders-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Project accordion styles */
.project-accordion {
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #0f172a; /* Dark background to match reference */
  border: 1px solid #1e293b;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #131e2f; /* Closer to reference image */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid #1e293b;
}

.project-header:hover {
  background-color: #263449;
}

.project-title {
  font-weight: 700; /* Bold */
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.01em; /* Slight letter spacing for better readability */
}

.project-chevron {
  transition: transform 0.3s ease;
  color: #64748b; /* Slightly darker gray to match reference */
  font-size: 0.85rem; /* Slightly smaller chevron */
}

.project-chevron.collapsed {
  transform: rotate(-90deg);
}

.project-content {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.project-content.collapsed {
  max-height: 0;
  overflow: hidden;
}

/* Render table styles */
.render-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #0f172a; /* Dark background matching reference */
}

.render-table th {
  text-align: left;
  padding: 10px 14px; /* Reduced padding to match reference */
  font-weight: 500;
  font-size: 0.85rem;
  color: #ffffff;
  border-bottom: 1px solid #131e2f;
}

.render-table td {
  padding: 12px 14px; /* Match reference */
  border-bottom: 1px solid #131e2f;
  font-size: 0.9rem;
  vertical-align: middle;
  color: #ffffff;
}

.render-table tbody tr {
  background-color: #0f172a; /* Dark row */
}

.render-table tbody tr:nth-child(even) {
  background-color: #131e2f; /* Darker row for alternating */
}

.render-table tbody tr:hover {
  background-color: #1a253a; /* Subtle hover effect */
}

/* Cancel button styling */
.action-button.cancel-button {
  background-color: #ef4444; /* Red background */
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%; /* Perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  padding: 0;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-button.cancel-button:hover {
  background-color: #dc2626; /* Darker red on hover */
  transform: scale(1.1);
}


/* Buttons */
.action-button2 {
  background-color: var(--accent-primary);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

@media (max-width: 768px) {
  .action-button2 {
    padding: 0.625rem 1.125rem; /* Larger touch target */
    font-size: 0.9375rem; /* Slightly larger text */
    min-height: 2.75rem; /* Ensure minimum height for touch */
    min-width: 8rem; /* Ensure minimum width for touch */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Button spacing already handled in card-header media query */
}

.action-button2:hover {
  background-color: var(--accent-hover);
}

.action-button2:active {
  transform: translateY(1px);
  background-color: var(--accent-hover);
}

.video-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

/* 2️⃣ Each row: video panel + meta panel */
.video-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;

  background: var(--navy-800);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow: hidden;

  transition: transform .2s, box-shadow .2s;
}
.video-card:hover {
/*  transform: translateY(-4px);*/
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
}

/* 3️⃣ Left panel — keep 16:9 ratio */
.video-wrapper {
  max-width: 45%;
  position: relative;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-card .video-wrapper {
  flex: 0 0 50%;    /* takes up 50 % of the article */
  max-width: 50%;
  width: 50%;

  /* Slimmer height via aspect-ratio instead of padding-hack */
  aspect-ratio: 16 / 9;      /* keeps it responsive */
  height: auto;              /* browsers that honour aspect-ratio */
}

.video-card .video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* 4️⃣ Right panel grows to fill remaining space */
.video-meta {
  flex: 1 1 auto;
  padding: 0;               /* already inside .video-card padding */
  display: flex;
  flex-direction: column;
}

.video-card .video-meta {
  flex: 1 1 50%;
}

/* 5️⃣ Responsive fallback — stack on narrow screens */
@media (max-width: 768px) {
  .video-card {
    flex-direction: column;
  }
  .video-wrapper {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--white);
}

.video-bullets {
  list-style: none;
  padding-left: 0;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--gray-400);
}
.video-bullets li {
  margin-bottom: .35rem;
}
.video-bullets li::before {
  content: "•";
  margin-right: .55rem;
  color: var(--accent-primary);
}

#toggle-video-btn {
  background-color: var(--primary);
}

#toggle-video-btn:hover {
  background-color: var(--primary-hover);
}

.text-brand-gold {
  color: #F7CF91;
}
