body {
    margin: 0;
    background: #eef2f7;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f2937;
}

/* ---------- HEADER ---------- */
.title-block {
    margin-left: 120px;
}

.app-header {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #d8dee6;
    display: flex;
    align-items: center;
    padding: 0 28px;
}

.logo {
    height: 42px;
    margin-right: 0;
}

.app-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    color: #6b7280;
    font-size: 13px;
}

/* ---------- LAYOUT ---------- */

.app-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    padding: 24px;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- CARDS ---------- */

.input-card,
.scheme-card,
.results-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.input-card h2,
.scheme-card h2,
.results-card h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
}

/* ---------- INPUT ---------- */

label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    height: 46px;
    font-size: 15px;
    border-radius: 8px;
}

.readonly-field {
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f5f7fa;
    border: 1px solid #d5d9df;
    border-radius: 8px;
    font-weight: 700;
}

.btn {
    height: 48px;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- STATUS ---------- */

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.waiting {
    background: #fff7d6;
    color: #8a6d00;
}

.running {
    background: #dbeafe;
    color: #1d4ed8;
}

.ready {
    background: #dcfce7;
    color: #166534;
}

/* ---------- SCHEME ---------- */

.scheme-image-wrapper {
    background: #fafafa;
    border: 1px solid #dfe3e8;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.scheme-img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

/* ---------- RESULTS ---------- */

.results-table {
    width: 100%;
    max-width: 760px;
    border-collapse: collapse;
    font-size: 15px;
}

.results-table tr:nth-child(even) {
    background: #f9fafb;
}

.results-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.results-table td {
    padding: 13px 16px;
}

.results-table td:first-child {
    width: 520px;
    font-weight: 600;
    color: #374151;
}

.results-table td:last-child {
    width: 160px;
    text-align: right;
    font-weight: 700;
    color: #111827;
}

/* ---------- LOADING ---------- */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-box {
    background: white;
    border-radius: 18px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.loading-title {
    font-size: 22px;
    font-weight: 700;
}

.loading-subtitle {
    margin-top: 8px;
    color: #6b7280;
}

/* ---------- MOBILE ---------- */

@media (max-width:1100px){

    .app-layout{
        grid-template-columns:1fr;
    }

    .results-table{
        max-width:100%;
    }

}