/* Path: assets/css/style.css */

:root {
    --sidebar-bg: #121826;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --body-bg: #f5f7fb;
    --card-radius: 18px;
}

body {
    background: var(--body-bg);
    color: #202636;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 22px;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5f7cff, #8a5fff);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
}

.sidebar-brand span {
    display: block;
    color: #99a4bd;
    font-size: 13px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.sidebar-nav a {
    color: #cbd3e7;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    transition: 0.15s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.10);
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--sidebar-border);
    padding-top: 18px;
}

.main-content {
    margin-left: 270px;
    padding: 28px;
    width: calc(100% - 270px);
}

.topbar {
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 0;
    font-weight: 800;
    font-size: 30px;
}

.topbar p {
    color: #657089;
    margin: 4px 0 0;
}

.card {
    border: 0;
    border-radius: var(--card-radius);
    box-shadow: 0 8px 24px rgba(20, 28, 45, 0.06);
}

.stat-card {
    padding: 22px;
}

.stat-card .label {
    color: #657089;
    font-size: 14px;
}

.stat-card .value {
    font-weight: 800;
    font-size: 28px;
    margin-top: 4px;
}

.table > :not(caption) > * > * {
    padding: 14px 16px;
}

.form-card {
    max-width: 980px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #121826, #25304c);
}

.login-card {
    width: min(430px, calc(100vw - 30px));
    border-radius: 22px;
    border: 0;
    box-shadow: 0 18px 70px rgba(0, 0, 0, .35);
}

.quote-print {
    background: white;
    color: #111827;
}

.quote-print .print-container {
    max-width: 960px;
    margin: 30px auto;
    background: white;
    padding: 40px;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .quote-print .print-container {
        margin: 0;
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .app-shell {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}


.company-logo-preview {
    width: auto;
    height: auto;
    max-width: 220px !important;
    max-height: 110px !important;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    background: #fff;
}

.quote-logo {
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
    max-height: 80px !important;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.quote-logo-box {
    width: 170px;
    max-width: 170px;
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.public-quote-shell {
    background: #eef2f7;
    min-height: 100vh;
    padding: 30px 12px;
}

.public-quote-box {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    padding: 36px;
    box-shadow: 0 15px 50px rgba(20, 28, 45, 0.10);
}

.email-preview {
    min-height: 260px;
    font-family: Consolas, Monaco, monospace;
}
