/* File: public_html/style.css */

:root {
  --primary-color: #0f172a;
  --secondary-color: #2563eb;
  --secondary-hover: #1d4ed8;
  --accent-color: #10b981;
  --warning-color: #d97706;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.brand-logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Hero Section */
.hero {
  padding: 5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 2.75rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
}

/* Buttons */
.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.btn-accent {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.btn-accent:hover {
  background-color: #059669;
}

.btn-danger-text {
  color: #dc2626;
  border: 1px solid #fca5a5;
  background-color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.75rem;
}

.btn-danger-text:hover {
  background-color: #fee2e2;
  color: #991b1b;
}

.btn-batch-add {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

.btn-batch-add:hover {
  background-color: #059669;
}

.btn-toggle-more {
  margin-top: 1rem;
  width: 100%;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Quick Action Chips */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-chip {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chip:hover {
  background-color: #e2e8f0;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Layout Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto;
}

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

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

@media (max-width: 900px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Pricing & Feature Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.card p {
  color: var(--text-muted);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 1rem 0;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Form Elements */
.form-card {
  max-width: 480px;
  margin: 3rem auto;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}

textarea.form-control {
  min-height: 350px;
  resize: vertical;
  font-size: 0.95rem;
  line-height: 1.5;
}

.file-upload-box {
  background-color: #f1f5f9;
  border: 2px dashed var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

/* Dashboard Header & Badges */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-active {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-expired {
  background-color: #fee2e2;
  color: #991b1b;
}

.tab-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* ATS Score & Update Cards */
.ats-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .ats-score-grid {
    grid-template-columns: 1fr;
  }
}

.ats-score-card {
  background-color: #eff6ff;
  border-left: 4px solid var(--secondary-color);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
}

.suggestions-card {
  background-color: #f0fdf4;
  border-left: 4px solid var(--accent-color);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
}

.suggestions-title {
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.5rem;
}

.suggestions-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: #15803d;
  font-size: 0.95rem;
}

.suggestions-list li {
  margin-bottom: 0.35rem;
}

.update-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.update-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.instruction-input-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .instruction-input-group {
    flex-direction: column;
  }
}

.instruction-input-group input {
  flex: 1;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .action-bar {
    flex-direction: column;
  }
  .action-bar button {
    width: 100%;
  }
}

/* Strict ATS Resume Document Output */
.ats-resume-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 3rem;
  font-family: "Calibri", "Arial", sans-serif;
  color: #000000;
  line-height: 1.4;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .ats-resume-container {
    padding: 1.5rem 1rem;
  }
}

.ats-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #000000;
  padding-bottom: 1rem;
}

.ats-header h1 {
  font-size: 20pt;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ats-header p {
  font-size: 10pt;
}

.ats-section-title {
  font-size: 12pt;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid #000000;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.1rem;
}

.ats-summary, .ats-competencies {
  font-size: 10.5pt;
  margin-bottom: 1rem;
}

.ats-experience-item {
  margin-bottom: 1rem;
}

.ats-role-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 11pt;
}

.ats-bullet-list {
  margin-left: 1.5rem;
  font-size: 10pt;
}

.ats-bullet-list li {
  margin-bottom: 0.25rem;
}

.cover-letter-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  font-family: Georgia, serif;
  font-size: 11pt;
  line-height: 1.6;
  white-space: pre-line;
  margin-top: 1.5rem;
}

/* Spinner Overlay & Modals */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.spinner-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.25rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.spinner-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ATS Keyword Analysis Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9990;
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
}

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

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.batch-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.analysis-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--border-color);
}

.keyword-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.keyword-card.suggested {
  background-color: #fffbeb;
  border-color: #fde68a;
  border-left: 4px solid var(--warning-color);
}

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

.keyword-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.keyword-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.keyword-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.keyword-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  background-color: #d1fae5;
  color: #065f46;
}

.keyword-badge.suggested {
  background-color: #fef3c7;
  color: #92400e;
}

.keyword-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.keyword-text {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-top: 0.2rem;
}

/* PRINT MEDIA STYLES */
@media print {
  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  nav, .navbar, .dashboard-header, .tab-nav, .tab-content, .ats-score-grid, .suggestions-card, .update-card, .action-bar, button, .file-upload-box, .loading-overlay, .modal-overlay {
    display: none !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #result-area {
    display: block !important;
    margin-top: 0 !important;
  }
  .ats-resume-container {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .cover-letter-box {
    border: none !important;
    padding: 0 !important;
    margin-top: 2rem !important;
    page-break-before: always;
  }
}