/* Dalcart Modern Dark V3 - unified high-contrast layout */
:root {
    --bg-main: #0a0f1a;
    --bg-panel: #111a2b;
    --bg-card: #162236;
    --text-primary: #f5f7ff;
    --text-secondary: #c3cee2;
    --accent: #4ab3ff;
    --accent-2: #22d3ee;
    --border-strong: #1f2b3f;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --transition: all 0.25s ease;
    --header-height: 80px;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, #0f172a 0%, #1e2f4d 55%, #1a73e8 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

.branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.branding img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.brand-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Enhanced Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(74, 179, 255, 0.3);
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    font-size: 14px;
    width: 220px;
    outline: none;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.7;
    transition: 0.2s;
}

.search-btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.cta {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #04101f;
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 238, 0.4);
}

.layout {
    display: flex;
    margin-top: var(--header-height);
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #0f172a;
    border-right: 1px solid var(--border-strong);
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 2px;
}

.sidebar nav a {
    display: block;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: rgba(74, 179, 255, 0.1);
    border-left-color: var(--accent);
    color: white;
}

.main {
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: calc(100vh - var(--header-height));
    background: var(--bg-main);
    width: 100%;
}

.hero {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(74, 179, 255, 0.05) 100%);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-strong);
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff, #b0c4de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 18px;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
}

/* Chat Widget Styling for Uniformity */
.kimberley-chat-toggle {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    color: #04101f !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4) !important;
    border-radius: 30px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

.kimberley-chat-window {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-primary) !important;
}

.chat-header {
    background: linear-gradient(90deg, #0f172a, #1e2f4d) !important;
    border-bottom: 1px solid var(--border-strong) !important;
}

.message.bot-message .message-content {
    background: #1e2f4d !important;
    color: #fff !important;
}

.chat-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-strong) !important;
    color: white !important;
}