/* Elite Architect Dashboard UI v4.1 - Ultra Stable */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --side-w: 72px;
    --draw-w: 260px;
    --head-h: 72px;
    --primary: #ffffff;
    --secondary: #4F46E5; /* Premium Brand Indigo - Final Specification */
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;
    --info: #0284C7;
    --bg-main: #FAFBFC;
    --bg-side: #0F1115;
    --bg-draw: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-alt: #F4F6F8;
    --bg-divider: #F1F3F5;
    --border: rgba(0, 0, 0, 0.08);
    --text-main: rgb(23, 0, 52); /* Updated to match new Heading Color */
    --text-dim: #475569;
    --text-muted: #94A3B8;
    --text-disabled: #CBD5E1;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Kanit', sans-serif;
    overflow-x: hidden;
}

h1 {
    font-family: 'kanit', sans-serif;
    font-style: normal;
    font-weight: 800; /* Added to fix 'sans-serif - 900' issue */
    color: rgb(23, 0, 52);
    line-height: normal;
}
h2, h3, h4, h5, h6 {
    font-family: 'kanit', sans-serif;
    font-style: normal;
    font-weight: 400; /* Added to fix 'sans-serif - 900' issue */
    color: rgb(23, 0, 52);
    line-height: normal;
}

p {
    font-family: 'Kanit', sans-serif;
    font-style: normal;
}

.app-shell {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.side-nav {
    width: var(--side-w);
    background: var(--bg-side);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    flex-shrink: 0;
}

.sub-drawer {
    width: var(--draw-w);
    background: var(--bg-draw);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    flex-shrink: 0;
    overflow-y: auto;
}

.sub-drawer.hidden {
    display: none;
}

.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workspace-header {
    height: var(--head-h);
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    flex-shrink: 0;
}

.workspace-view {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.content-container {
    max-width: 1400px;
    width: 100%;
}

/* Grids - Fixed Height Logic */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Corporate Card v4.2 White Theme */
.corp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.corp-card:hover {
    background: #FFFFFF;
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
}

.card-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.6;
}

ul{
    margin-top: 8px;
    opacity: 0.8;
    font-size: 18px;
    padding-left: 28px;
}
li{
    margin-top: 8px;
    opacity: 0.8;
    font-size: 17px;
    color: #000000 !important;
    padding-left: 28px;
}
.faq-q {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: bold;
}
/* Icons */
.nav-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-icon.active, .nav-icon:hover {
    color: var(--secondary);
    background: rgba(52, 195, 117, 0.1);
}

/* Calculator Specifics */
.input-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.input-box label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.input-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 500;
    outline: none;
}

.drawer-link {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s;
}

.drawer-link:hover, .drawer-link.active {
    color: var(--text-main);
    background: var(--bg-alt);
}

.drawer-link.active {
    color: var(--secondary);
    font-weight: 700;
}
