/* LokalWorks Design System - Shared across all pages */

/* Import Quicksand font for friendly, modern interface */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Core Design System */
:root {
  --font-size: 14px;
  --background: #f8fafc;
  --foreground: #1c1b1f;
  --card: #ffffff;
  --card-foreground: #1c1b1f;
  --popover: #ffffff;
  --popover-foreground: #1c1b1f;
  --primary: #0891b2;
  --primary-foreground: #ffffff;
  --secondary: #f0f8ff;
  --secondary-foreground: #1c1b1f;
  --muted: #f0f9ff;
  --muted-foreground: #49454f;
  --accent: #e0f7fa;
  --accent-foreground: #1c1b1f;
  --destructive: #ba1a1a;
  --destructive-foreground: #ffffff;
  --border: #e0f2fe;
  --input: transparent;
  --input-background: #f0f9ff;
  --switch-background: #e0f2fe;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-light: 300;
  --ring: #0891b2;
  --chart-1: #0891b2;
  --chart-2: #059669;
  --chart-3: #0284c7;
  --chart-4: #ca8a04;
  --chart-5: #9333ea;
  --radius: 1rem;
  --sidebar: #ffffff;
  --sidebar-foreground: #1c1b1f;
  --sidebar-primary: #0891b2;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #f0f9ff;
  --sidebar-accent-foreground: #1c1b1f;
  --sidebar-border: #e0f2fe;
  --sidebar-ring: #0891b2;
  
  /* Background Gradients */
  --background-gradient: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 25%, #b3e5fc 50%, #e0f7fa 75%, #f8fafc 100%);
  --background-gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 35%, #e0f7fa 65%, #f8fafc 100%);
  
  /* Privacy Mode Colors - Ocean Blue Theme */
  --privacy-background: #2c3e50;
  --privacy-background-gradient: linear-gradient(135deg, #2c3e50 0%, #1a252f 25%, #2980b9 50%, #16a085 75%, #2c3e50 100%);
  --privacy-card: #34495e;
  --privacy-card-foreground: #ecf0f1;
  --privacy-message-background: #455a75;
  --privacy-input-area: #2c3e50;
  --privacy-input-background: #34495e;
  --privacy-muted: #5d6d7e;
  --privacy-muted-foreground: #bdc3c7;
  --privacy-border: #5d6d7e;
  --privacy-indicator: #b91c1c;
  --privacy-indicator-hover: #dc2626;
}

/* Dark Mode */
.dark {
  --background: #141218;
  --foreground: #e6e0e9;
  --card: #1d1b20;
  --card-foreground: #e6e0e9;
  --popover: #1d1b20;
  --popover-foreground: #e6e0e9;
  --primary: #22d3ee;
  --primary-foreground: #083344;
  --secondary: #1e293b;
  --secondary-foreground: #cbd5e1;
  --muted: #0f172a;
  --muted-foreground: #94a3b8;
  --accent: #1e293b;
  --accent-foreground: #cbd5e1;
  --destructive: #ffb4ab;
  --destructive-foreground: #690005;
  --border: #1e293b;
  --input: #1e293b;
  --ring: #22d3ee;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-light: 300;
  --chart-1: #22d3ee;
  --chart-2: #4ade80;
  --chart-3: #60a5fa;
  --chart-4: #fbbf24;
  --chart-5: #a78bfa;
  --sidebar: #1d1b20;
  --sidebar-foreground: #e6e0e9;
  --sidebar-primary: #22d3ee;
  --sidebar-primary-foreground: #083344;
  --sidebar-accent: #0f172a;
  --sidebar-accent-foreground: #cbd5e1;
  --sidebar-border: #1e293b;
  --sidebar-ring: #22d3ee;
  
  /* Dark Mode Background Gradients */
  --background-gradient: linear-gradient(135deg, #141218 0%, #0f172a 25%, #164e63 50%, #1e293b 75%, #141218 100%);
  --background-gradient-subtle: linear-gradient(135deg, #141218 0%, #0f172a 35%, #1e293b 65%, #141218 100%);
  
  /* Privacy Mode Colors - Dark theme (Deep Blue) */
  --privacy-background: #1a2332;
  --privacy-background-gradient: linear-gradient(135deg, #1a2332 0%, #243447 25%, #3498db 50%, #17a2b8 75%, #1a2332 100%);
  --privacy-card: #2c3e50;
  --privacy-card-foreground: #ecf0f1;
  --privacy-message-background: #34495e;
  --privacy-input-area: #1a2332;
  --privacy-input-background: #2c3e50;
  --privacy-muted: #5d6d7e;
  --privacy-muted-foreground: #bdc3c7;
  --privacy-border: #5d6d7e;
  --privacy-indicator: #ffd700;
  --privacy-indicator-hover: #ffe55c;
}

/* Legacy compatibility */
:root {
    --app-background: var(--background);
    --navigation-background: var(--sidebar);
    --chat-background: var(--card);
    --button-primary: var(--primary);
}

/* Body base styling */
body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Utility Classes for Gradients */
.bg-gradient-main {
    background-image: var(--background-gradient);
    background-attachment: fixed;
}

.bg-gradient-subtle {
    background-image: var(--background-gradient-subtle);
    background-attachment: fixed;
}

.bg-gradient-privacy {
    background-image: var(--privacy-background-gradient);
    background-attachment: fixed;
}

/* Standard Navigation Component */
.lokalworks-nav {
    background-color: var(--sidebar);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.lokalworks-nav .nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .lokalworks-nav .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lokalworks-nav .nav-container {
        padding: 0 2rem;
    }
}

.lokalworks-nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.lokalworks-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lokalworks-nav .nav-logo-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lokalworks-nav .nav-logo-icon {
    background: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white' width='16' height='16'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.lokalworks-nav .nav-breadcrumb {
    margin-left: 0.75rem;
    color: var(--muted-foreground);
}

.lokalworks-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lokalworks-nav .nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lokalworks-nav .nav-link:hover {
    color: var(--foreground);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0570a0;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--accent);
}

/* Card Styles */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--card-foreground);
    margin: 0 0 0.5rem 0;
}

.card-description {
    color: var(--muted-foreground);
    margin: 0;
}

/* Input Styles */
.input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--input-background);
    color: var(--foreground);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(8 145 178 / 0.1);
}

/* Container Styles */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.container-sm {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Login/Auth specific styles */
.login-container {
    background: var(--card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--border);
}

.login-logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Status badges */
.status-active {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fef3c7;
    color: #92400e;
}

.status-inactive {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #991b1b;
}