﻿/* =========================================================
   GLOBAL THEME VARIABLES (SINGLE SOURCE OF TRUTH)
   ========================================================= */
:root {
    /* ===== Layout ===== */
    --layout-padding: 24px;
    --header-height: 56px;
    --sidebar-width: 240px;
    /* ===== Colors ===== */
    --color-bg: #ffffff;
    --color-page-bg: #f5f6f8;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --border-light: #e5e7eb;
    /* ===== Radius ===== */
    --radius: 8px;
}

/* =========================================================
   BASE RESET & TYPOGRAPHY
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--color-page-bg);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* =========================================================
   ROOT LAYOUT (SIDEBAR'DAN BAĞIMSIZ)
   ========================================================= */
.layout-root {
    display: flex;
    min-height: 100vh;
}

.layout-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left .24s ease, width .24s ease;
}

.layout-content {
    padding: var(--layout-padding);
    flex: 1;
    min-width: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.app-footer {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--color-text-muted);
    border-top: 1px solid var(--border-light);
    width: 100%;
    margin-top: auto;
}

.app-footer-left {
    text-align: left;
}

.app-footer-center {
    text-align: center;
}

.app-footer-right {
    text-align: right;
}

/* =========================================================
   RESPONSIVE (LAYOUT ONLY)
   ========================================================= */
@media (max-width: 992px) {
    .layout-main {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --layout-padding: 14px;
    }

    .layout-content {
        padding: var(--layout-padding);
    }
}

/* =========================================================
   MONEY INPUT UTILITIES (GLOBAL)
   ========================================================= */
.money-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.money-input-wrap .money-input-control {
    flex: 1 1 auto;
    min-width: 0;
}

.money-input-suffix {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    pointer-events: none;
    white-space: nowrap;
}

.form-simple-grid { max-width:720px; display:grid; gap:10px; }

.sp-page-content { display: grid; gap: 16px; }

.installer-main { padding: 32px 24px; width: 100%; display: flex; justify-content: center; }

/* DecisionSupport - compact progress bar */
.ds-progress-sm { height: 8px; }
