/* ========================================
   ORGANIGRAMM - Modern Glassmorphism Design
   Vibrant Colors + Glass Effects
   ======================================== */

:root {
    /* Fresh Blue-Teal Color Palette */
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --secondary: #14b8a6;
    --accent: #f97316;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #22c55e 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    --gradient-cool: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-body: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-dark: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

    /* Text Colors */
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: rgba(255, 255, 255, 0.95);

    /* Other */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

/* Animated Background */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-body);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Shapes */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

body::before {
    width: 600px;
    height: 600px;
    background: rgba(14, 165, 233, 0.3);
    top: -200px;
    right: -100px;
    animation-delay: -5s;
}

body::after {
    width: 500px;
    height: 500px;
    background: rgba(20, 184, 166, 0.3);
    bottom: -150px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

/* Standalone headings (outside cards) need light color on dark bg */
.container > h2,
.container > h3 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 32px 0 20px;
}

/* ========== DEMO BANNER ========== */
.demo-banner {
    background: linear-gradient(90deg, #dc2626, #ea580c);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: sticky;
    top: 40px;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    -webkit-text-fill-color: initial;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 6px;
}

.navbar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.navbar-nav a:hover {
    color: white;
}

.navbar-nav a:hover::before {
    opacity: 1;
}

.navbar-nav a.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* ========== BURGER BUTTON ========== */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-bottom: 40px;
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.page-header h1 {
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

.breadcrumb {
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ========== GLASS CARDS ========== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(14, 116, 144, 0.2);
}

.card h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(14, 165, 233, 0.2);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h2 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    -webkit-text-fill-color: initial;
}

/* ========== GRIDS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 28px; }

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

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

    /* Mobile Navbar mit Burger Menu */
    .navbar {
        padding: 12px 16px;
        height: 56px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .navbar-brand { font-size: 1rem; }
    .navbar-brand svg { width: 24px; height: 24px; }

    .navbar-toggle { display: flex; }

    .navbar-nav {
        position: fixed;
        top: 96px; /* demo-banner (40px) + navbar (56px) */
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-nav a {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
        text-align: center;
    }
    .container { padding: 12px; }
    .card { padding: 16px; margin-bottom: 16px; }
    .hero { padding: 24px 16px !important; margin-bottom: 20px; }
    .hero h1 { font-size: 1.3rem !important; margin-bottom: 6px !important; }
    .hero h1 span { display: block; font-size: 0.75rem !important; margin-top: 4px; }
    .hero p { font-size: 0.85rem !important; margin-bottom: 12px !important; }
    .hero > div { padding: 12px !important; font-size: 0.8rem !important; }
    .demo-banner { font-size: 0.7rem; padding: 8px 10px; }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.1rem; }
    .page-header { padding: 16px; margin-bottom: 20px; }
    .page-header h1 { font-size: 1.3rem; }
    .page-header .subtitle { font-size: 0.9rem; }

    /* Tabellen scrollbar auf Mobile */
    .card:has(table) { overflow-x: auto; }
    table { min-width: 500px; font-size: 0.8rem; }
    th, td { padding: 10px 12px; }

    /* Stat Cards kleiner */
    .stat-card { padding: 16px; }
    .stat-card .value { font-size: 2rem; }
    .stat-card .label { font-size: 0.8rem; }

    /* Footer kompakter */
    .footer { padding: 20px 16px; font-size: 0.8rem; }

    /* Buttons */
    .btn { padding: 10px 16px; font-size: 0.8rem; }

    /* Organigramm Mobile */
    .org-tree { padding: 20px 10px; }
    .org-ceo .org-node { padding: 16px 20px; min-width: auto; }
    .org-ceo h3 { font-size: 1.1rem; }
    .org-connector-main { height: 30px; }
    .org-departments { flex-direction: column !important; gap: 12px !important; }
    .org-dept { max-width: 100% !important; }
    .org-dept-card { padding: 16px; }
    .org-branch::before { display: none; }

    /* Feature Cards */
    .feature-card { padding: 20px; }

    /* Quick Stats - 2 Spalten auf Mobile */
    .quick-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .quick-stat { padding: 12px !important; }
    .quick-stat .number { font-size: 1.5rem !important; }
    .quick-stat .label { font-size: 0.7rem !important; }

    /* User Header kompakter */
    .user-header { padding: 14px 16px !important; flex-direction: column !important; align-items: flex-start !important; }
    .user-avatar { width: 40px !important; height: 40px !important; font-size: 1rem !important; }
    .user-details h2 { font-size: 1rem !important; }
    .user-details p { font-size: 0.75rem !important; }
    .header-buttons { width: 100%; justify-content: flex-start; }
    .btn-light { padding: 8px 12px !important; font-size: 0.75rem !important; }

    /* Form Sections */
    .form-section { padding: 14px !important; }
    .form-section-header { padding: 12px 14px !important; flex-wrap: wrap !important; gap: 8px !important; }
    .form-section-header h3 { font-size: 0.95rem !important; }
    .form-section-content { padding: 14px !important; }

    /* Formulare */
    .form-row { flex-direction: column !important; gap: 12px !important; }
    .form-group { margin-bottom: 14px !important; }
    .form-input, input, textarea, select { padding: 10px 12px !important; font-size: 0.85rem !important; }
    .form-actions { flex-direction: column !important; gap: 10px !important; }
    .form-actions .btn { width: 100% !important; }

    /* Request Cards */
    .request-card { padding: 14px !important; }
    .request-header { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
    .request-meta { flex-wrap: wrap !important; gap: 8px !important; }
    .request-actions { flex-wrap: wrap !important; gap: 6px !important; width: 100% !important; }
    .request-actions .btn-sm { flex: 1 !important; min-width: 80px !important; }

    /* Workflow Bar horizontal scrollbar */
    .workflow-bar { overflow-x: auto !important; padding: 16px !important; }
    .workflow-node { min-width: 100px !important; padding: 10px 12px !important; }
    .workflow-node .node-label { font-size: 0.75rem !important; }

    /* Stats Grid */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

    /* Info Boxes */
    .info-box { padding: 14px !important; }
    .info-box strong { font-size: 0.85rem !important; }
    .info-box p { font-size: 0.8rem !important; }

    /* Filter Tabs */
    .filter-tabs { flex-wrap: wrap !important; gap: 6px !important; }
    .filter-tab { padding: 8px 12px !important; font-size: 0.75rem !important; }

    /* Abteilungs-Cards */
    .abt-card, .dept-card { padding: 16px !important; }
    .abt-header { flex-direction: column !important; gap: 12px !important; }
    .mitarbeiter-avatar { width: 40px !important; height: 40px !important; }

    /* Process Steps */
    .process-step { padding: 14px !important; flex-direction: column !important; gap: 10px !important; }
    .step-number { width: 32px !important; height: 32px !important; font-size: 0.85rem !important; }

    /* Alle Flex-Container wrappen */
    [style*="display: flex"] { flex-wrap: wrap !important; }
    [style*="gap: 20px"] { gap: 12px !important; }
    [style*="gap: 24px"] { gap: 12px !important; }
    [style*="gap: 28px"] { gap: 14px !important; }
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

th, td {
    padding: 14px 18px;
    text-align: left;
}

th {
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:nth-child(even) {
    background: rgba(14, 165, 233, 0.05);
}

tbody tr:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: scale(1.01);
}

tbody td {
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}
.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}
.badge-primary {
    background: var(--gradient-primary);
    color: white;
}
.badge-neutral {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text);
}

/* ========== INFO BOXES ========== */
.info-box {
    padding: 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-box p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.info-box.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text);
}

.info-box.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--text);
}

.info-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--text);
}

.info-box.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--text);
}

/* ========== ALERTS ========== */
.alert {
    padding: 18px 24px;
    border-radius: var(--radius);
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
}

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

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 179, 8, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========== ORG CARDS ========== */
.org-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.org-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.25);
}

.org-card:hover::before {
    transform: scaleX(1);
}

.org-card.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.org-card.primary::before {
    display: none;
}

.org-card .role {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.org-card .name {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.org-card.primary .name {
    color: rgba(255, 255, 255, 0.9);
}

.org-card .team-size {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.org-card.primary .team-size {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

/* Department Color Bars */
.dept-sales { border-left: 4px solid #10b981; }
.dept-marketing { border-left: 4px solid #f59e0b; }
.dept-it { border-left: 4px solid #3b82f6; }
.dept-finance { border-left: 4px solid #8b5cf6; }
.dept-hr { border-left: 4px solid #ec4899; }

/* Page Header Department Colors */
.abt-vertrieb { border-left: 5px solid #10b981; }
.abt-marketing { border-left: 5px solid #f59e0b; }
.abt-it { border-left: 5px solid #3b82f6; }
.abt-finanzen { border-left: 5px solid #14b8a6; }

/* ========== AVATARS ========== */
.avatar,
.mitarbeiter-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    flex-shrink: 0;
}

.avatar-lg,
.mitarbeiter-avatar[style*="width: 120px"] {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
    border-radius: 20px;
}

/* ========== MITARBEITER CARDS ========== */
.mitarbeiter-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.mitarbeiter-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.mitarbeiter-card .mitarbeiter-avatar {
    margin: 0 auto 16px;
}

.mitarbeiter-card h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.mitarbeiter-card .position {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.mitarbeiter-card .kontakt {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== STAT CARDS ========== */
.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.stat-card .value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-cool);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text);
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 48px;
}

/* ========== CONNECTOR LINES ========== */
.connector-v {
    width: 3px;
    height: 40px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.connector-h {
    height: 3px;
    background: var(--gradient-primary);
    margin: 20px auto;
    border-radius: 2px;
}

/* ========== HERO SECTION ========== */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 60px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 18px;
    position: relative;
    -webkit-text-fill-color: white;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

/* ========== PROCESS STEPS ========== */
.process-step {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(8px);
    box-shadow: var(--glass-shadow);
}

.process-step .step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.process-step strong {
    display: block;
    margin-bottom: 6px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== WORKFLOW VISUAL ========== */
.workflow-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.workflow-node {
    background: white;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

.workflow-node:hover {
    transform: scale(1.05);
}

.workflow-node.automated {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.workflow-node.manual {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 179, 8, 0.1) 100%);
}

.workflow-node .node-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.workflow-node .node-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.workflow-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card .icon-box {
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 14px;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.feature-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.feature-card a:hover {
    color: var(--secondary);
}

/* ========== ICON BOX ========== */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.icon-box svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* ========== STATUS INDICATORS ========== */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.active { background: var(--success); color: var(--success); }
.status-dot.pending { background: var(--warning); color: var(--warning); }
.status-dot.inactive { background: var(--text-muted); color: var(--text-muted); }

/* ========== SVG DEFAULTS ========== */
svg {
    flex-shrink: 0;
}

/* ========== PRINT STYLES ========== */
@media print {
    body {
        background: white;
    }
    body::before,
    body::after {
        display: none;
    }
    .navbar { display: none; }
    .container { max-width: 100%; padding: 20px; }
    .card {
        break-inside: avoid;
        backdrop-filter: none;
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(14, 165, 233, 0.3);
    color: var(--text);
}
