/* * SWISS ASSET MASTER - CORE STYLESHEET
 * Version: 2.0 (High Performance)
 * Copyright: 2025
 */

:root {
    /* Color Palette - Inspiriert von modernen Fintechs */
    --primary: #f7931a;      /* Bitcoin/Gold Orange */
    --primary-hover: #e68b15;
    --dark-bg: #0f172a;      /* Deep Slate */
    --card-bg: #1e293b;      /* Lighter Slate */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    
    /* Swiss Specific Colors */
    --swiss-red: #ff0000;
    --success-green: #10b981;
    --danger-red: #ef4444;
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* --- RESET & BASIC SETUP --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--primary); }

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

/* --- SIDEBAR NAVIGATION --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

.nav-link i { width: 25px; font-size: 1.1rem; }

.nav-link:hover, .nav-link.active {
    background-color: rgba(247, 147, 26, 0.1);
    color: var(--primary);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- MAIN CONTENT AREA --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2rem;
    width: calc(100% - var(--sidebar-width));
}

/* --- CARDS & WIDGETS --- */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.glass-card:hover {
    border-color: var(--primary);
}

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

/* --- METRICS (KPIs) --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.trend-up { color: var(--success-green); font-size: 0.9rem; font-weight: 600; }
.trend-down { color: var(--danger-red); font-size: 0.9rem; font-weight: 600; }

/* --- TABLES --- */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.custom-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 1rem;
}

.custom-table td {
    background-color: #253146; /* Slightly lighter than card */
    padding: 1rem;
    vertical-align: middle;
}

.custom-table tr td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.custom-table tr td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* --- FORMS & INPUTS --- */
.swiss-input {
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: 0.3s;
}

.swiss-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- CHAT INTERFACE (AI) --- */
.chat-window {
    height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    background: #0f172a;
    margin-bottom: 1rem;
}

.chat-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 0.95rem;
}

.bot-msg { background-color: #334155; color: white; border-top-left-radius: 0; }
.user-msg { background-color: var(--primary); color: white; margin-left: auto; border-top-right-radius: 0; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar { width: 70px; padding: 1rem 0.5rem; }
    .brand span, .nav-link span, .sidebar-footer { display: none; }
    .nav-link { justify-content: center; }
    .main-content { margin-left: 70px; width: calc(100% - 70px); padding: 1rem; }
}