/* assets/css/style.css - Complete Modern Dark Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0c10;
  color: #eff3f8;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12161c;
  --bg-card: #1a1f26;
  --border-dim: #2a2f38;
  --accent-primary: #2563eb;
  --accent-hover: #3b82f6;
  --text-muted: #9ca3af;
  --text-light: #f3f4f8;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
}

/* Navbar Styles */
.navbar {
  background: rgba(10, 12, 16, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo i {
  background: none;
  -webkit-background-clip: unset;
  color: var(--accent-primary);
  margin-right: 6px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-hover);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.btn-outline,
.btn-solid {
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
  border: none;
  font-family: inherit;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

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

.btn-outline:hover {
  background: rgba(37, 99, 235, 0.15);
}

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

.btn-solid:hover {
  background: var(--accent-hover);
  transform: scale(0.98);
}

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

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(145deg, #ffffff, #90caf9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto;
  color: #cbd5e1;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: #1e293b;
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 24px;
  padding: 1.8rem;
  transition: all 0.25s;
  position: relative;
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.card i {
  font-size: 2.2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: space-around;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 32px;
  border: 1px solid var(--border-dim);
  flex-wrap: wrap;
  gap: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Feature Highlight */
.feature-highlight {
  background: linear-gradient(135deg, #0f172a, #111827);
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-dim);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.feature-item h3 {
  margin-bottom: 0.5rem;
}

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

/* Pricing Page Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--accent-primary);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price small {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-muted);
}

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

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list i {
  font-size: 0.9rem;
  color: var(--success);
  margin: 0;
}

/* Contact Sales Card */
.contact-sales-card {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 32px;
  border: 1px solid var(--border-dim);
}

.contact-sales-card i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.contact-sales-card h3 {
  margin-bottom: 0.5rem;
}

.contact-sales-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Use Case Page Styles */
.sector-controls {
  margin: 2rem 0;
}

.sector-dropdown {
  display: none;
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 40px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.sector-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.sector-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 0.8rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  transition: 0.2s;
  font-family: inherit;
}

.sector-btn.active,
.sector-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.use-case-content {
  background: var(--bg-secondary);
  border-radius: 32px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-dim);
}

.use-case-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.use-case-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.use-case-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.use-case-list li:before {
  content: "✓";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Chat Demo */
.demo-chat {
  background: #0c0f15;
  border-radius: 28px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.message {
  display: flex;
  gap: 0.8rem;
  margin: 1rem 0;
}

.message.ai {
  justify-content: flex-start;
}

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

.bubble {
  max-width: 75%;
  padding: 0.8rem 1.2rem;
  border-radius: 22px;
  background: #1e2530;
}

.message.user .bubble {
  background: var(--accent-primary);
  color: white;
}

.query-input {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.query-input input {
  flex: 1;
  background: #0f1217;
  border: 1px solid var(--border-dim);
  border-radius: 40px;
  padding: 0.8rem 1.2rem;
  color: white;
  font-family: inherit;
}

.query-input input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.query-input button {
  background: var(--accent-primary);
  border: none;
  padding: 0 1.5rem;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: 0.2s;
}

.query-input button:hover {
  background: var(--accent-hover);
}

/* Auth Pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0c10 0%, #12161c 100%);
}

.auth-container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: 32px;
  padding: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-small {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  margin-bottom: 1rem;
}

.auth-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

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

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

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  background: #0f1217;
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  color: white;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-dim);
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    border-right: 1px solid var(--border-dim);
  }

  .nav-wrapper.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.5rem;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .auth-buttons button,
  .auth-buttons a {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .stats-section {
    flex-direction: column;
    align-items: center;
  }

  .sector-buttons {
    display: none;
  }

  .sector-dropdown {
    display: block;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .container {
    padding: 1rem;
  }

  .use-case-content h3 {
    font-size: 1.4rem;
  }

  .bubble {
    max-width: 85%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }

  .grid-cards,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.popular {
    transform: scale(1);
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--accent-primary);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideIn 0.3s ease;
}

.notification-success {
  border-left-color: var(--success);
}

.notification-error {
  border-left-color: var(--error);
}

.notification-info {
  border-left-color: var(--accent-primary);
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  margin-left: 0.5rem;
}

.notification-close:hover {
  color: var(--text-light);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Custom Tooltip */
.custom-tooltip {
  position: fixed;
  background: var(--bg-secondary);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  border: 1px solid var(--border-dim);
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Countdown Timer */
.countdown-item {
  display: inline-block;
  margin: 0 0.5rem;
  text-align: center;
}

.countdown-item span {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-primary);
}

/* Table Responsive Wrapper */
.table-responsive-wrapper {
  overflow-x: auto;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

.data-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

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

/* Status Badges */
.status-badge,
.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

.status-open {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-in_progress {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
}

.status-resolved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-closed {
  background: rgba(156, 163, 175, 0.1);
  color: var(--text-muted);
}

.priority-low {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.priority-medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.priority-high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.priority-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

/* Form Focus State */
.form-group.focused label {
  color: var(--accent-primary);
}

/* JavaScript Loaded Class */
.js-loaded .animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
}
