/* AI Support Operator - Custom CSS */

/* CSS Variables */
:root {
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;
  --secondary-color: #81c784;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --info-color: #43a047;
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;
  --text-primary: #212121;
  --text-secondary: #757575;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --sidebar-width: 260px;
  --header-height: 64px;
  --footer-height: 48px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--grey-100);
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content.no-sidebar {
  margin-left: 0;
}

.main-content.docs-main-content {
  margin-left: 0;
}

.content-area {
  flex: 1;
  padding: 24px;
  background-color: var(--grey-100);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: white;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.sidebar-brand a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-title {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  cursor: pointer;
}

.sidebar-link:hover {
  background-color: var(--grey-100);
}

.sidebar-link.active {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
}

.sidebar-link .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

/* Header */
.header {
  height: var(--header-height);
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 8px;
  margin-left: 32px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  opacity: 0.8;
  transition: opacity 0.2s, background-color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  opacity: 1;
  background-color: rgba(255,255,255,0.1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-menu {
  position: relative;
}

/* Header Auth Links (for non-logged in users) */
.header-auth-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.header-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--grey-100);
}

/* Footer */
.footer {
  height: var(--footer-height);
  background: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-secondary);
}

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

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

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--grey-50);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.form-error {
  margin-top: 4px;
  font-size: 12px;
  color: var(--error-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-secondary {
  background-color: var(--grey-200);
  color: var(--text-primary);
}

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

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

.btn-danger:hover {
  background-color: #d32f2f;
}

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

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

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover {
  background-color: var(--grey-100);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

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

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--grey-100);
}

.auth-header {
  height: var(--header-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.auth-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
}

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

/* Landing Page */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  height: var(--header-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--grey-100);
}

.landing-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.landing-hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Dashboard */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}

.page-title p {
  color: var(--text-secondary);
  margin: 0;
}

/* Filters */
.filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.filters .form-group {
  margin-bottom: 0;
  flex: 1;
}

/* Site Cards Grid */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.site-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.site-card-header {
  height: 80px;
  position: relative;
}

.site-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background-color: rgba(76, 175, 80, 0.15);
  color: var(--success-color);
}

.status-draft {
  background-color: rgba(255, 152, 0, 0.15);
  color: var(--warning-color);
}

.status-archived {
  background-color: rgba(158, 158, 158, 0.15);
  color: var(--grey-600);
}

.site-card-body {
  padding: 16px;
}

.site-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.site-card-domain {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.site-card-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
}

.site-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background-color: var(--grey-50);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: white;
  border-radius: var(--radius-md);
}

.empty-state-icon {
  font-size: 64px;
  color: var(--grey-400);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Site Management */
.site-manage-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.site-manage-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.site-info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary-color);
}

.site-manage-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.manage-nav {
  background: white;
  border-radius: var(--radius-md);
  padding: 8px;
}

.manage-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.manage-nav-item:hover {
  background-color: var(--grey-100);
}

.manage-nav-item.active {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
}

.manage-nav-badge {
  margin-left: auto;
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.manage-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Tickets */
.ticket-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--grey-100);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--grey-200);
  color: var(--text-primary);
}

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

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ticket-item-title {
  font-weight: 600;
  flex: 1;
}

.ticket-item-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-item-content {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.ticket-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Ticket Item with Checkbox */
.ticket-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ticket-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.ticket-item-checkbox {
  flex-shrink: 0;
  padding-top: 2px;
}

.ticket-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.ticket-item-content-wrapper {
  flex: 1;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ticket-item-content-wrapper:hover {
  color: inherit;
}

/* Bulk Action Bar */
.bulk-action-bar {
  background: var(--grey-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.bulk-action-bar .form-select {
  padding: 6px 12px;
  font-size: 13px;
}

/* Text Secondary */
.text-secondary {
  color: var(--text-secondary);
}

/* Pagination */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.pagination-btn:hover {
  background: var(--grey-100);
  border-color: var(--grey-400);
}

.pagination-current {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 60px;
  text-align: center;
}

/* Ticket Detail */
.ticket-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.ticket-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.ticket-detail-title {
  flex: 1;
}

.ticket-detail-title h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.response-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.response-item {
  background: var(--grey-50);
  border-radius: var(--radius-md);
  padding: 16px;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.response-author {
  font-weight: 600;
}

.response-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.response-content {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.response-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* AI Suggestions */
.ai-suggestions {
  margin-top: 24px;
}

.ai-suggestion-item {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, rgba(46, 125, 50, 0.1) 100%);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.ai-suggestion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

.ai-suggestion-content {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.ai-suggestion-actions {
  display: flex;
  gap: 8px;
}

/* Form Templates */
.template-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.template-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.template-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.template-card-title {
  font-weight: 600;
  flex: 1;
}

.template-card-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.field-chip {
  background: var(--grey-100);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

/* Drag and drop styles for form templates */
.template-card-draggable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: grab;
  transition: box-shadow 0.2s, transform 0.2s;
}

.template-card-draggable:active {
  cursor: grabbing;
}

.template-card-draggable.dragging {
  opacity: 0.5;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.template-card-draggable.drag-over {
  border: 2px dashed var(--primary-color);
  background-color: rgba(46, 125, 50, 0.05);
}

.template-card-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin: -4px -8px -4px -4px;
  color: var(--grey-500);
  cursor: grab;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.template-card-drag-handle:hover {
  color: var(--grey-700);
  background-color: var(--grey-100);
}

.template-card-drag-handle svg {
  display: block;
}

.template-card-content {
  flex: 1;
  min-width: 0;
}

/* API Keys */
.api-keys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.api-key-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.api-key-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.api-key-value {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.api-key-value input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 13px;
  background: var(--grey-50);
}

/* Manuals */
.manuals-viewer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.manuals-sidebar {
  background: var(--grey-50);
  border-right: 1px solid var(--border-color);
  padding: 16px;
}

.manuals-content {
  padding: 24px;
  min-height: 400px;
}

.folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.folder-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-item:hover {
  background-color: var(--grey-200);
}

.folder-item.active {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
}

/* File List in Manuals */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.file-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  background: white;
  transition: background-color 0.2s, border-color 0.2s;
}

.file-item:hover {
  background-color: var(--grey-50);
  border-color: var(--primary-color);
}

.file-item.active {
  background-color: rgba(46, 125, 50, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Markdown Content */
.markdown-content {
  line-height: 1.7;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  margin: 24px 0 16px;
  font-weight: 600;
}

.markdown-content h1 {
  font-size: 24px;
}

.markdown-content h2 {
  font-size: 20px;
}

.markdown-content h3 {
  font-size: 18px;
}

.markdown-content p {
  margin-bottom: 16px;
}

.markdown-content code {
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
}

.markdown-content pre {
  background: var(--grey-900);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
}

/* Documentation */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.docs-sidebar {
  background: white;
  border-right: 1px solid var(--border-color);
  padding: 24px;
  overflow-y: auto;
}

/* Mobile-only styles for docs sidebar */
@media (max-width: 768px) {
  .docs-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    z-index: 100 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    display: block !important;
  }

  .docs-sidebar.open {
    transform: translateX(0) !important;
  }

  .docs-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .docs-sidebar.open + .docs-sidebar-overlay {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

.docs-nav-section {
  margin-bottom: 24px;
}

.docs-nav-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.docs-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav-item {
  margin-bottom: 4px;
}

.docs-nav-link {
  display: block;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.docs-nav-link:hover {
  background-color: var(--grey-100);
}

.docs-nav-link.active {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
}

.docs-content {
  padding: 32px 48px;
  max-width: 800px;
}

.docs-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.docs-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.docs-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.docs-content code {
  background: var(--grey-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
}

.docs-content pre {
  background: var(--grey-900);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 16px 0;
}

.docs-content pre code {
  background: transparent;
  padding: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast/Notification */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--error-color);
}

.toast.warning {
  border-left: 4px solid var(--warning-color);
}

.toast.info {
  border-left: 4px solid var(--info-color);
}

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

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

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

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

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

/* Responsive */
@media (max-width: 1024px) {
  .site-manage-layout {
    grid-template-columns: 1fr;
  }

  .manage-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .manage-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ticket-detail-layout {
    grid-template-columns: 1fr;
  }

  .api-keys-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: block;
  }

  .sidebar.open + .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .main-content {
    margin-left: 0;
  }

  .header-nav {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-content {
    padding: 16px;
    max-width: 100%;
  }

  .docs-content h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .docs-content h2 {
    font-size: 20px;
    margin: 24px 0 12px;
  }

  .docs-content h3 {
    font-size: 16px;
    margin: 20px 0 10px;
  }

  .docs-content pre {
    padding: 12px;
    font-size: 13px;
  }

  .docs-content code {
    font-size: 12px;
  }

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

  .filters {
    flex-direction: column;
  }

  .landing-hero h1 {
    font-size: 32px;
  }

  .landing-hero p {
    font-size: 16px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .form-field-row {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

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

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

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

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

  .steps-new {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .landing-footer-links {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .landing-nav-links a:not(.btn) {
    display: none;
  }

  .hero-section {
    padding: 100px 24px 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-xl {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .features-section-new,
  .how-it-works-new,
  .cta-section-new {
    padding: 80px 24px;
  }

  .features-grid-new {
    grid-template-columns: 1fr;
  }

  .section-header-new h2 {
    font-size: 28px;
  }

  .step-new {
    max-width: 100%;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn-xl {
    width: 100%;
    justify-content: center;
  }

  .landing-footer {
    padding: 48px 24px 0;
  }

  .landing-footer-links {
    flex-direction: column;
    gap: 32px;
  }
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--grey-200);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Checkbox & Radio */
.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--grey-300);
  transition: 0.3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .switch-slider {
  background-color: var(--primary-color);
}

.switch input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.alert-info {
  background-color: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.2);
  color: #1b5e20;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.2);
  color: #1b5e20;
}

.alert-warning {
  background-color: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.2);
  color: #e65100;
}

.alert-error {
  background-color: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.2);
  color: #b71c1c;
}

/* Table */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr:hover {
  background-color: var(--grey-50);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background-color: rgba(255, 152, 0, 0.1);
  color: var(--warning-color);
}

.badge-error {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

/* Toast Improvements */
.toast {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease;
  position: relative;
}

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--error-color);
}

.toast.warning {
  border-left: 4px solid var(--warning-color);
}

.toast.info {
  border-left: 4px solid var(--info-color);
}

@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;
  }
}

/* Mobile Menu Toggle - Default (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Show on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Loading States */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  color: inherit;
}

.btn-primary.btn-loading::after {
  border-top-color: white;
}

.skeleton {
  background: linear-gradient(90deg, var(--grey-200) 25%, var(--grey-100) 50%, var(--grey-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-title {
  height: 1.5em;
  width: 60%;
  margin-bottom: 0.75em;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Page Transitions */
.page-transition {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Hover Effects */
.site-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-link {
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.2s;
}

.sidebar-link.active::before {
  transform: scaleY(1);
}

/* Focus States for Accessibility */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.sidebar-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color 0.2s, background-color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--grey-100);
}

.modal {
  position: relative;
}

/* Sidebar Toggle Button (Desktop) */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

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

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
  width: 64px;
}

.sidebar.collapsed .sidebar-brand {
  padding: 16px 12px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-brand-link {
  justify-content: center;
}

.sidebar.collapsed .sidebar-brand-text {
  display: none;
}

.sidebar.collapsed .sidebar-nav {
  padding: 8px 12px;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .sidebar-link .icon {
  margin: 0;
}

.sidebar.collapsed .sidebar-link-text {
  display: none;
}

.sidebar.collapsed .sidebar-footer {
  padding: 16px 12px;
}

.sidebar.collapsed .sidebar-new-site-btn {
  padding: 10px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-btn-text {
  display: none;
}

.sidebar.collapsed .btn svg {
  margin: 0;
}

/* Main content margin when sidebar is collapsed */
.main-content.sidebar-collapsed {
  margin-left: 64px;
}

/* Hide sidebar toggle on mobile */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: none;
  }
}

/* Landing Page Features */
.features-section {
  padding: 80px 24px;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.how-it-works-section {
  padding: 80px 24px;
  background: var(--grey-100);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.step-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.cta-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section .btn {
  background: white;
  color: var(--primary-color);
  font-size: 16px;
  padding: 14px 32px;
}

.cta-section .btn:hover {
  background: var(--grey-100);
}

/* Dynamic Form Fields */
.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--grey-50);
  border-radius: var(--radius-sm);
}

.form-field-row .btn-danger {
  padding: 10px 12px;
}

/* File Upload */
.file-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

.file-upload-zone:hover {
  border-color: var(--primary-color);
  background-color: rgba(46, 125, 50, 0.02);
}

.file-upload-zone.dragover {
  border-color: var(--primary-color);
  background-color: rgba(46, 125, 50, 0.05);
}

.file-upload-zone input[type="file"] {
  display: none;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

/* New Landing Page Styles */

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.landing-logo svg {
  color: var(--primary-color);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.landing-nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.landing-nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 120px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8faf8 0%, #f0f7f0 100%);
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.badge-new {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.btn-xl {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
}

.btn-xl svg {
  transition: transform 0.2s;
}

.btn-xl:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background-color: white;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--grey-100);
  border-color: var(--grey-300);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card-dots {
  display: flex;
  gap: 6px;
}

.hero-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-card-dots span:first-child {
  background: #ff5f57;
}

.hero-card-dots span:nth-child(2) {
  background: #febc2e;
}

.hero-card-dots span:nth-child(3) {
  background: #28c840;
}

.hero-card-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.hero-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-ticket {
  background: var(--grey-50);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero-ticket-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.hero-ticket-icon.ai-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
}

.hero-ticket-body {
  flex: 1;
  min-width: 0;
}

.hero-ticket-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.hero-ticket-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-ticket-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-open {
  background: rgba(255, 152, 0, 0.1);
  color: var(--warning-color);
}

.hero-ticket-suggestion {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
  padding: 10px;
  background: rgba(46, 125, 50, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  min-height: 48px;
}

/* Typing Animation Styles */
.typing-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  position: relative;
}

.typing-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.typing-cursor {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 100;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 1px;
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Features Section New */
.features-section-new {
  padding: 120px 48px;
  background: white;
}

.section-header-new {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  background: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header-new h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header-new p {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-new {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.feature-icon-new {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
}

.feature-card-new h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card-new p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works New */
.how-it-works-new {
  padding: 120px 48px;
  background: linear-gradient(180deg, #f8faf8 0%, #f0f7f0 100%);
}

.steps-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-new {
  flex: 1;
  max-width: 320px;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.step-number-new {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* CTA Section New */
.cta-section-new {
  padding: 100px 48px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

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

.btn-light:hover {
  background: var(--grey-100);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Landing Footer */
.landing-footer {
  background: var(--grey-900);
  color: white;
  padding: 64px 48px 0;
}

.landing-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-footer-brand {
  max-width: 320px;
}

.landing-footer-brand .landing-logo {
  color: white;
  margin-bottom: 16px;
}

.landing-footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.landing-footer-links {
  display: flex;
  gap: 64px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.landing-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
}

.landing-footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

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

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

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

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

  .steps-new {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .landing-footer-links {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* Navigation Mobile */
  .landing-nav-inner {
    padding: 0 12px;
    height: 56px;
  }

  .landing-logo {
    font-size: 15px;
    gap: 6px;
    white-space: nowrap;
  }

  .landing-logo svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .landing-logo span {
    white-space: nowrap;
  }

  .landing-nav-links {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .landing-nav-links a:not(.btn) {
    display: none;
  }

  .landing-nav-links .btn {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .landing-nav-links .btn-ghost {
    display: none;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 80px 16px 60px;
    min-height: auto;
    gap: 32px;
  }

  .hero-badge {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-description br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-actions .btn-xl {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  .hero-stats {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stat-number {
    font-size: 24px;
  }

  .hero-stat-label {
    font-size: 12px;
  }

  /* Hero Card Mobile */
  .hero-visual {
    order: -1;
  }

  .hero-card {
    max-width: 100%;
    animation: none;
  }

  .hero-card-header {
    padding: 12px 16px;
  }

  .hero-card-title {
    font-size: 12px;
  }

  .hero-card-content {
    padding: 16px;
  }

  .hero-ticket {
    padding: 12px;
  }

  .hero-ticket-icon {
    width: 32px;
    height: 32px;
  }

  .hero-ticket-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero-ticket-title {
    font-size: 13px;
  }

  .hero-ticket-meta {
    font-size: 11px;
  }

  .hero-ticket-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .hero-ticket-suggestion {
    font-size: 12px;
    padding: 8px;
  }

  /* Features Section Mobile */
  .features-section-new {
    padding: 60px 16px;
  }

  .section-header-new {
    margin-bottom: 40px;
  }

  .section-header-new h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .section-header-new p {
    font-size: 15px;
  }

  .features-grid-new {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card-new {
    padding: 24px 20px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .feature-icon-new {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
  }

  .feature-icon-new svg {
    width: 24px;
    height: 24px;
  }

  .feature-card-new h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .feature-card-new p {
    font-size: 13px;
  }

  /* How It Works Mobile */
  .how-it-works-new {
    padding: 60px 16px;
  }

  .steps-new {
    flex-direction: column;
    gap: 16px;
  }

  .step-new {
    max-width: 100%;
    padding: 24px 20px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .step-number-new {
    width: 44px;
    height: 44px;
    font-size: 16px;
    margin: 0;
    flex-shrink: 0;
  }

  .step-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .step-content p {
    font-size: 13px;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  /* CTA Section Mobile */
  .cta-section-new {
    padding: 60px 16px;
  }

  .cta-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .cta-content p {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta-actions .btn-xl {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Footer Mobile */
  .landing-footer {
    padding: 40px 16px 0;
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .landing-footer-brand {
    max-width: 100%;
  }

  .landing-footer-brand p {
    font-size: 13px;
  }

  .landing-footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-column h4 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .footer-column a {
    font-size: 13px;
  }

  .landing-footer-bottom {
    padding: 16px 0;
  }

  .landing-footer-bottom p {
    font-size: 12px;
  }
}

/* Terms of Service Page */
.terms-section {
  padding: 80px 24px 64px;
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - 300px);
}

.terms-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.terms-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  text-align: center;
}

.terms-updated {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 32px 0;
}

.terms-intro {
  background: var(--grey-50);
  border-left: 4px solid var(--primary-color);
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.terms-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.terms-article {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--grey-200);
}

.terms-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.terms-article h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--grey-200);
}

.terms-article p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.terms-article ul {
  margin: 12px 0;
  padding-left: 24px;
}

.terms-article li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.terms-article li:last-child {
  margin-bottom: 0;
}

.terms-contact {
  background: var(--grey-50);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: 14px;
  color: var(--primary-color);
  margin-top: 16px;
}

/* Terms Page Responsive */
@media (max-width: 768px) {
  .terms-section {
    padding: 64px 16px 40px;
  }

  .terms-container {
    padding: 24px;
  }

  .terms-title {
    font-size: 24px;
  }

  .terms-intro {
    padding: 16px 20px;
  }

  .terms-article h2 {
    font-size: 16px;
  }

  .terms-article p,
  .terms-article li {
    font-size: 13px;
  }
}
