﻿:root {
    --blue: #2563eb;
    --blue-dark: #172554;
    --blue-soft: #eff6ff;
    --green: #14b8a6;
    --green-soft: #f0fdfa;
    --bg: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --surface: #ffffff;
    --shadow: 0 24px 60px rgba(30, 58, 138, 0.09);
    --danger: #d64545;
    --warning: #f2c94c;
    --orange: #f2994a;
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 86px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}
.app-bg-circle {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.app-bg-one {
    top: 70px;
    left: -90px;
    width: 280px;
    height: 280px;
    background: #dbeafe;
    opacity: 0.75;
}
.app-bg-two {
    right: -110px;
    bottom: -90px;
    width: 340px;
    height: 340px;
    background: #ccfbf1;
    opacity: 0.62;
}
.app-bg-three {
    left: 18%;
    bottom: 18%;
    width: 210px;
    height: 210px;
    background: #bfdbfe;
    opacity: 0.34;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-body {
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    gap: 24px;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.88);
    border-right: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 18px 0 42px rgba(30, 58, 138, 0.08);
    backdrop-filter: blur(16px);
    transition: width 0.2s ease, padding 0.2s ease, transform 0.2s ease;
}
.sidebar-head {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid #eef2f7;
}
.brand {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 12px;
    padding: 0;
    color: var(--blue-dark);
    font-weight: 900;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(30, 58, 138, 0.14);
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #eef2f7;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-toggle {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
    background: #f0fdfa;
    color: #0f766e;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.sidebar-toggle:hover {
    border-color: #99f6e4;
    background: #ccfbf1;
}
.sidebar-toggle:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 2px;
}
.sidebar-toggle-icon,
.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.sidebar-toggle-icon {
    position: relative;
}
.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
}
.sidebar-toggle-icon::before { transform: translateY(-5px); }
.sidebar-toggle-icon::after { transform: translateY(5px); }
.sidebar-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}
.sidebar-nav a,
.sidebar-nav .link-button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: 14px;
    color: #334155;
    font-weight: 700;
    text-align: left;
}
.sidebar-nav svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}
.sidebar-nav a:hover,
.sidebar-nav a.is-active,
.sidebar-nav .link-button:hover {
    background: #f0fdfa;
    color: #0f766e;
    text-decoration: none;
}
.sidebar-nav a.is-active {
    box-shadow: inset 4px 0 0 #14b8a6;
}
.sidebar-logout {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}
.link-button, .row-actions button {
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font: inherit;
}
