/* ========================================
   SCENIC-ONE ERP - UNIFIED DESIGN SYSTEM
   Professional UI/UX with Consistent Components
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Dark Theme Base (matching scenic-digital.de) */
    --landing-bg: #050505;
    --landing-text: #ffffff;
    --landing-card: rgba(255, 255, 255, 0.04);
    --landing-border: rgba(255, 255, 255, 0.1);

    /* Primary Colors - Scenic Digital Teal Branding */
    --primary: #37B6BD;
    /* Exact Scenic Digital Teal */
    --primary-light: #4ecfd6;
    --primary-dark: #2a8e94;
    --primary-gradient: linear-gradient(135deg, #37B6BD 0%, #2a8e94 100%);
    --primary-100: rgba(55, 182, 189, 0.1);
    --primary-200: rgba(55, 182, 189, 0.2);
    /* Slightly darker primary for borders */

    /* Background Colors for App */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-active: #e2e8f0;

    /* Text Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Border & Dividers */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 6px 12px -2px rgb(0 0 0 / 0.12);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    --transition-slow: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;

    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Status Colors - Softer, Professional */
    --success: #16a34a;
    --success-bg: #dcfce7;
    --success-light: #bbf7d0;

    --warning: #ea580c;
    --warning-bg: #fed7aa;
    --warning-light: #ffedd5;

    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --danger-light: #fecaca;

    --info: #0284c7;
    --info-bg: #e0f2fe;
    --info-light: #bae6fd;

    /* Glass Effect */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--landing-bg);
    /* Default to dark to avoid light flashes */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== UNIFIED BUTTON SYSTEM ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(55, 182, 189, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(55, 182, 189, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--border-dark);
}

/* Logo styling for dark theme */
.landing-nav img {
    background: transparent !important;
    filter: none;
    /* SVG logo is already optimized for dark backgrounds */
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-100);
    border-color: var(--primary-dark);
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 3.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(55, 182, 189, 0.3);
    text-transform: none;
    letter-spacing: -0.01em;
}

.btn-xl:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(55, 182, 189, 0.4);
    filter: brightness(1.1);
}

/* Icon-only buttons */
.btn-icon {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
}

/* ========== UNIFIED FORM SYSTEM ========== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background-color: var(--bg-hover);
    cursor: not-allowed;
    opacity: 0.6;
}

select.form-input,
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Layouts */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.form-section {
    margin-bottom: var(--space-2xl);
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border);
}

/* ========== UNIFIED TABLE SYSTEM ========== */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.erp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.erp-table thead {
    background: var(--bg-hover);
    border-bottom: 2px solid var(--border);
}

.erp-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.erp-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition);
}

.erp-table tbody tr:last-child {
    border-bottom: none;
}

.erp-table tbody tr:hover {
    background-color: var(--bg-hover);
}

.erp-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}

/* ========== BADGE SYSTEM ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-dark);
}

.badge-secondary {
    background: var(--bg-active);
    color: var(--text-muted);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

/* ========== LAYOUT SYSTEM ========== */
.app-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* ========== SIDEBAR NAVIGATION ========== */
.sidebar {
    background: #0f172a;
    color: white;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(55, 182, 189, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.sidebar>* {
    position: relative;
    z-index: 1;
}

.sidebar-logo {
    width: 100%;
    max-width: 180px;
    margin: 0 auto var(--space-2xl);
    display: block;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-link.active {
    background: rgba(0, 130, 138, 0.15);
    color: white;
    font-weight: 600;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-light);
    border-radius: 0 2px 2px 0;
}


/* Navigation Icons - Fixed width */
.nav-icon {
    display: inline-block;
    width: 1.5rem;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

/* Submenu Styles */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-parent {
    justify-content: space-between;
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition);
    opacity: 0.6;
}

.nav-group.open .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    margin-top: var(--space-xs);
    margin-left: var(--space-md);
    padding-left: var(--space-lg);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.nav-group.open .nav-submenu {
    display: block;
}

.nav-submenu .nav-link {
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wrapper for icon and text in parent menu items */
.nav-content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* User Profile */
.user-profile {
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ========== MAIN CONTENT AREA ========== */
.main-content {
    overflow-y: auto;
    padding: var(--space-2xl);
    background: var(--bg-main);
}

.page-header {
    margin-bottom: var(--space-2xl);
}

#page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-sm);
}

/* ========== WIDGET/CARD SYSTEM ========== */
.widget {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-lg);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* KPI Cards - Professional, Softer Colors */
.kpi-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.kpi-change {
    font-size: 0.875rem;
    margin-top: var(--space-sm);
}

.kpi-change.positive {
    color: var(--success);
}

.kpi-change.negative {
    color: var(--danger);
}

/* ========== MODAL SYSTEM ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-content.wide {
    max-width: 900px;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    border-top: 1px solid var(--border);
}

/* ========== TAB SYSTEM ========== */
.tabs {
    display: flex;
    gap: var(--space-md);
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-xl);
}

.tab-btn {
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: all var(--transition);
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ========== AUTHENTICATION SCREENS (Poliert) ========== */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(55, 182, 189, 0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.auth-card {
    background: #111;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.auth-logo {
    display: block;
    margin: 0 auto var(--space-2xl);
    max-width: 200px;
}

/* ========== LANDING PAGE (Poliert & Bodenständig) ========== */
.landing-container {
    background-color: var(--landing-bg);
    color: var(--landing-text);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.landing-container h1,
.landing-container h2,
.landing-container h3,
.landing-container h4,
.landing-container .hero-badge {
    font-family: 'Outfit', sans-serif;
}

/* Background Blobs for atmospheric depth */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(55, 182, 189, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    top: -200px;
    right: -100px;
}

.blob-2 {
    bottom: -200px;
    left: -100px;
}

.landing-hero {
    padding: 10rem 5% 6rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: rgba(55, 182, 189, 0.1);
    border: 1px solid var(--primary-100);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.landing-hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: white;
    position: relative;
    z-index: 1;
}

.landing-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    padding: 4rem 3rem;
    border-radius: 40px;
    background: var(--landing-card);
    border: 1px solid var(--landing-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-light);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.landing-footer {
    background: #050505;
    color: #fff;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--space-sm);
}

.gap-2 {
    gap: var(--space-md);
}

.gap-3 {
    gap: var(--space-lg);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.5s ease;
}

.animate-fade-down {
    animation: fadeInDown 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* ========== LANDING PAGE REDESIGN ========== */
.landing-container {
    background-color: var(--landing-bg);
    color: var(--landing-text);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.landing-container h1,
.landing-container h2,
.landing-container .hero-badge {
    font-family: 'Outfit', sans-serif;
}

/* Background Blobs for atmospheric depth */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 140, 149, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    top: -200px;
    right: -100px;
}

.blob-2 {
    bottom: -200px;
    left: -100px;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.landing-hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--landing-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 2.5rem;
}

.landing-hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.landing-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features/Product Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5% 8rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.feature-card {
    background: var(--landing-card);
    border: 1px solid var(--landing-border);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: block;
}

.landing-footer {
    padding: 6rem 5% 4rem;
    text-align: center;
    border-top: 1px solid var(--landing-border);
    margin-top: 4rem;
    background: var(--landing-bg);
}

.landing-footer p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.company-mention {
    font-weight: 700;
    color: var(--landing-text);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 240px 1fr;
    }

    .sidebar {
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ADMIN PANEL ========== */
.admin-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    transition: all var(--transition);
}

.list-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

/* ========== CHART PLACEHOLDER ========== */
.chart-placeholder {
    height: 200px;
    background: var(--bg-hover);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
}

/* ========== HOVER EFFECTS ========== */
.hover-row {
    transition: background-color var(--transition);
}

.hover-row:hover {
    background-color: var(--bg-hover);
}

/* ========== DETAIL VIEWS ========== */
.detail-header {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.info-box {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.info-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

/* ========== UI PREVIEW (Landing) ========== */
.hero-mockup-container {
    margin-top: 5rem;
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 40px;
    border: 1px dashed var(--primary);
    animation: floatApp 5s ease-in-out infinite;
}

@keyframes floatApp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.ui-preview {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 480px;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--border);
}

.ui-sidebar {
    background: #0f172a;
    padding: 2rem;
}

.ui-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #334155;
    display: inline-block;
    margin-right: 6px;
}

.ui-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.ui-line.active {
    background: var(--primary);
    width: 80%;
}

.ui-content {
    padding: 2.5rem;
    background: #fff;
}

.ui-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    align-items: center;
}

.ui-title {
    height: 28px;
    width: 180px;
    background: #f1f5f9;
    border-radius: 4px;
}

.ui-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ui-widget {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ui-stat {
    height: 40px;
    width: 100px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

/* ========== DESIGNER SPECIFIC STYLES ========== */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-main);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.checkbox-container input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-container:hover {
    color: var(--primary);
}

.designer-layout .tab-btn {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

#doc-preview-canvas {
    transition: all 0.3s ease;
}

#designer-preview-container {
    perspective: 1000px;
    background-color: #1e293b;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Scrollbar for Preview */
.preview-sticky::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.preview-sticky::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.preview-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.preview-sticky::-webkit-scrollbar-track {
    background: transparent;
}

/* ========== DESIGNER SYSTEM ========== */
.designer-cat-item:hover {
    background: #f8fafc !important;
}

.designer-cat-item.active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.designer-cat-item div:first-child {
    transition: transform 0.2s ease;
}

.designer-cat-item:hover div:first-child {
    transform: scale(1.15);
}

/* ========== DESIGNER v3 SYSTEM ========== */
.designer-nav-pill:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.designer-nav-pill.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.designer-nav-pill div {
    transition: opacity 0.2s;
}

.designer-nav-pill:hover div {
    opacity: 1 !important;
}

#designer-config::-webkit-scrollbar {
    width: 4px;
}

#designer-config::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 2px;
}

.designer-v3-container {
    --primary-rgb: 13, 148, 136;
    /* Teal 600 default */
}

/* Banking Bridge specific styles */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tan-box {
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.tan-box:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-100) !important;
    outline: none;
    transform: translateY(-2px);
}

.tan-method:hover {
    border-color: var(--primary) !important;
    background-color: var(--primary-100) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========== LANDING PAGE SYSTEM ========== */
.landing-container {
    background-color: var(--landing-bg);
    color: var(--landing-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    /* Changed to fixed to ensure it follows everywhere */
    top: 20px;
    margin: 0 5%;
    width: 90%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-nav.scrolled {
    top: 10px;
    background: rgba(5, 5, 5, 0.85);
    border-radius: 20px;
    padding: 0.8rem 2rem;
}

.nav-link {
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(55, 182, 189, 0.1);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
}

.blob-1 {
    top: -200px;
    right: -200px;
}

.blob-2 {
    bottom: -200px;
    left: -200px;
}

.feature-card {
    background: var(--landing-card);
    border: 1px solid var(--landing-border);
    padding: 3rem;
    border-radius: 30px;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-100);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 480px) {
    .hide-mobile-mini {
        display: none !important;
    }
}

/* ========== SCROLL & NAVIGATION HELPERS ========== */
.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(55, 182, 189, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

/* ========== CONTACT FORM ========== */
.contact-section {
    padding: 10rem 5%;
    background: #000;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: start;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 40px;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
}

.contact-form-group {
    margin-bottom: 2rem;
}

.contact-form-label {
    display: block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(55, 182, 189, 0.1);
}

.contact-checkbox-group {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.contact-checkbox {
    margin-top: 0.3rem;
    accent-color: var(--primary);
    width: 20px;
    height: 20px;
}

.contact-checkbox-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.contact-checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

/* ========== ACCESSIBILITY (A11Y) SYSTEM ========== */
.a11y-high-contrast {
    filter: contrast(1.5) !important;
}

.a11y-large-text {
    font-size: 1.2rem !important;
}

.a11y-grayscale {
    filter: grayscale(1) !important;
}

#a11y-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1500;
}

.a11y-btn {
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.a11y-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.a11y-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    width: 250px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    animation: fadeInUp 0.3s ease;
}

.a11y-menu.visible {
    display: block;
}

.a11y-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.a11y-option:last-child {
    border-bottom: none;
}

/* Global Button Hover Enhancement */
.btn-primary,
.btn-secondary,
.btn-xl {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-primary:hover,
.btn-xl:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(55, 182, 189, 0.4);
    filter: brightness(1.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px);
}

/* ========== COOKIE CONSENT BANNER ========== */
#cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    z-index: 2000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
}

#cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    color: white;
}

.cookie-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions button {
        width: 100%;
    }
}

/* ========== INFINITE FEATURES CAROUSEL ========== */
.carousel-container {
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
    background: rgba(55, 182, 189, 0.02);
}

.carousel-track {
    display: flex;
    gap: 2.5rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-card {
    width: 380px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carousel-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-100);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.carousel-icon {
    font-size: 3rem;
    background: rgba(55, 182, 189, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.carousel-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.carousel-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.25rem));
    }
}