/*
Тема кабинета клиента PREDICT — "лазурный берег": светлая,
бирюзово-песочная, вместо прежнего тёмного золота (тот стиль
остался только в админке, admin.py:page()). Классы и разметка те
же самые — меняются только цвета/фон, чтобы не трогать шаблоны.
*/

* {
    box-sizing: border-box;
}

:root {
    --bg-top: #eaf7f6;
    --bg-bottom: #fbf6ec;
    --panel: #ffffff;
    --border: rgba(15, 118, 110, .14);
    --azure: #0e9aa7;
    --azure-deep: #0a6e78;
    --sand: #d9a45c;
    --sand-light: #f1c98a;
    --text: #10343a;
    --muted: #5c7a7e;
}

html {
    min-height: 100%;
    background: var(--bg-bottom);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(14, 154, 167, .16), transparent 42%),
        radial-gradient(circle at bottom right, rgba(217, 164, 92, .14), transparent 45%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--text);
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 76px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, #0a6e78, #12a3ac 55%, #3fc1c9);
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 10px 30px rgba(10, 110, 120, .22);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--sand-light), var(--sand));
    color: #3a2a0f;
    font-weight: 900;
    box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .5), inset -3px -3px 6px rgba(0, 0, 0, .15), 0 6px 16px rgba(0, 0, 0, .18);
}

.header-label {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-link {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    font-size: 13px;
}

.header-link:hover {
    color: #ffffff;
}

.container {
    width: min(1100px, calc(100% - 48px));
    margin: 34px auto 60px;
}

.container-narrow {
    width: min(440px, calc(100% - 48px));
    margin: 90px auto 60px;
}

.card {
    background: linear-gradient(180deg, #ffffff, #f5fbfa);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 16px 34px rgba(14, 110, 120, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
}

h1, h2 {
    color: var(--azure-deep);
    margin-top: 0;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 18px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.6;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

th, td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(14, 110, 120, .1);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--azure-deep);
    background: rgba(14, 154, 167, .08);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 15px;
    border: 1px solid rgba(14, 110, 120, .2);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

label {
    font-weight: 600;
    display: block;
    color: var(--azure-deep);
}

.hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 14px;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 110, 120, .18);
    border-radius: 11px;
    padding: 12px 18px;
    background: linear-gradient(145deg, #12a3ac, #0a6e78);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(10, 110, 120, .22);
}

button:hover, .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(10, 110, 120, .3);
}

button:disabled {
    opacity: .55;
    cursor: default;
    transform: none;
}

.button-gold {
    background: linear-gradient(145deg, var(--sand-light), var(--sand));
    color: #3a2a0f;
    border-color: rgba(217, 164, 92, .4);
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.ok {
    color: #16825d;
}

.warn {
    color: #a5720f;
}

.err {
    color: #c0392b;
}

.notice {
    padding: 14px 16px;
    background: rgba(14, 154, 167, .07);
    border: 1px solid rgba(14, 154, 167, .18);
    border-radius: 11px;
    margin-bottom: 20px;
}

.back {
    margin-bottom: 20px;
    display: inline-flex;
    color: var(--muted);
    text-decoration: none;
}

.back:hover {
    color: var(--azure-deep);
}

.section-title {
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(14, 154, 167, .18);
    color: var(--azure-deep);
}

.message {
    max-width: 380px;
    white-space: normal;
    word-break: break-word;
}

.error-text {
    color: #c0392b;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .header {
        padding: 0 18px;
    }
    .container, .container-narrow {
        width: min(100% - 24px, 1400px);
        margin-top: 20px;
    }
    .card {
        padding: 18px;
        border-radius: 14px;
        overflow-x: auto;
    }
    table {
        min-width: 600px;
    }
}
