/* Main variables */
:root {
  --primary-color: #2563eb; /* Blue */
  --primary-hover: #1d4ed8;
  --secondary-color: #7c3aed; /* Purple */
  --light-blue: #e6f2fa;
  --light-green: #ecfdf5;
  --green-border: #a7f3d0;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-500: #ef4444;
  --white: #ffffff;
  --dark-blue: #1A202C;
}

/* Global styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--white);
  color: var(--gray-900);
  line-height: 1.5;
}

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

/* Header styles */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0 10px; /* Increased top padding */
}

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

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

.logo {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
}

.logo-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-color);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.logo-icon span {
  color: var(--white);
  font-weight: bold;
  font-size: 1.5rem;
}

.beta-tag {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background-color: var(--red-500);
  color: var(--white);
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-900);
}

.logo-text .text-blue {
  color: var(--primary-color);
}

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

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

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

.nav-link.active {
  color: var(--gray-900);
  font-weight: 500;
}

.login-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

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

/* User menu styles */
.user-menu {
  position: relative;
}

.user-icon {
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 150px;
  z-index: 100;
  margin-top: 8px;
  display: none;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-dropdown li {
  padding: 8px 16px;
}

.user-dropdown a {
  color: var(--gray-900);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.user-dropdown a:hover {
  color: var(--primary-color);
}

.dot {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 8px;
}

/* Hero section */
.hero-section {
  background-color: var(--light-blue);
  padding: 3rem 0;
  position: relative;
}

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

.hero-content {
  max-width: 50%;
}

.hero-logo {
  display: flex;
  justify-content: flex-end;
  width: 50%;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.large-logo {
  width: 220px;
  height: 180px;
  background-color: var(--secondary-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.large-logo-content {
  position: relative;
}

.large-logo-letter {
  color: var(--white);
  font-size: 6rem;
  font-weight: bold;
}

.large-logo-dots {
  position: absolute;
  right: -2rem;
  top: 1rem;
  display: flex;
}

.large-logo-dot {
  width: 1rem;
  height: 1rem;
  background-color: var(--white);
  border-radius: 50%;
  margin-right: 0.25rem;
}

.large-logo-extra-dots {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.large-logo-small-dot {
  width: 0.625rem;
  height: 0.625rem;
  background-color: var(--white);
  border-radius: 50%;
}

/* Form section */
.form-section {
  padding: 3rem 0;
}

.form-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.form-subtitle {
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.excuse-form-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-textarea {
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  background-color: var(--gray-50);
  font-size: 0.875rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .style-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.style-option:hover {
  background-color: rgba(37, 99, 235, 0.05);
  border-color: var(--primary-color);
}

.style-option.active {
  background-color: rgba(91, 33, 182, 0.1);
  border-color: var(--secondary-color);
}

.style-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.style-name {
  font-size: 0.75rem;
}

.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  background-color: var(--white);
  font-size: 0.875rem;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gray-600);
  pointer-events: none;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.form-checkbox {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
}

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

.coming-soon-tag {
  position: absolute;
  top: -0.75rem;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.75rem;
}

.info-box {
  display: flex;
  align-items: center;
  background-color: var(--gray-100);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.info-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.generate-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-state {
  text-align: center;
  padding: 2rem 0;
}

.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.result-container {
  margin-top: 1rem;
}

.result-header {
  margin-bottom: 1rem;
}

.result-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.result-style {
  color: var(--primary-color);
  font-weight: normal;
}

.result-text {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.copy-btn {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.copy-btn:hover {
  background-color: var(--gray-200);
}

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

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

/* How it works section */
.how-it-works-section {
  padding: 4rem 0;
  background-color: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.step-description {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Examples section */
.examples-section {
  padding: 4rem 0;
  background-color: white;
}

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.example-card {
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.example-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.example-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.example-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.example-situation {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0 0 0.5rem 0;
  padding: 0 1.5rem;
}

.example-text {
  background-color: var(--gray-100);
  padding: 0.75rem;
  margin: 0 1.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: white;
  border-top: 1px solid var(--gray-200);
  padding: 1rem 0;
}

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

.footer-site-info, 
.footer-copyright {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility classes */
.hidden {
  display: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content, .hero-logo {
    max-width: 100%;
    width: 100%;
  }
  
  .hero-logo {
    justify-content: center;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .main-nav {
    gap: 1rem;
  }
  
  .excuse-form-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .result-actions {
    flex-direction: column;
  }
}
