:root {
	--gray-color: #3a4d4a;
	--text-color: #1e2a35;
	--text-muted: #6c757d;
	--bg-color: #f1f5f9;
	--form-bg: rgba(254, 253, 252, 1);
	--bg-header: #D5DCE4; /*#4E5B56; /*#6A6462; /*#1E2A35; /*#C8D3D5; /*#D5DCE4;*/
	--bg-footer: #242526; /* #1e2a35 */
	--border-color: #dee2e6;
	--error-color: #dc3545;
	--btn-color: #308590;
	--btn-hover: #105693;
	--gen-badge: #e0e4ea;
	--mono-font: 'Fira Code', monospace;
	--dense-font: 'Fira Sans Condensed', 'Roboto Condensed', 'Ubuntu Condensed', sans-serif;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	display: flex;
	margin: 0;
	padding: 0;
	align-content: center;
	min-height: 100vh;
	flex-direction: column;
	font-family: 'Fira Sans', 'Ubuntu', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: var(--btn-hover);
    text-decoration: none;
    transition: color 0.2s;
}
a:link,
a:visited {
    text-decoration: none;
    color: var(--btn-hover);
}
a:hover {
    color: var(--btn-color);
}

ul {
	list-style-type: none;
	padding-left: 0;
}

.login-container {
	background-color: var(--form-bg);
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 400px;
	margin: 60px auto;
	box-sizing: border-box;
}

.form-group {
	margin-bottom: 16px;
}

.custom-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    color: var(--text-color);
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.custom-input:focus {
    border-color: var(--btn-hover);
    box-shadow: 0 0 0 2px rgba(30, 85, 90, 0.15);
}

.custom-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color); /*#495057;*/
}

.custom-btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--btn-color);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-btn-primary:hover {
    background-color: var(--btn-hover);
}

.custom-error-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
    font-size: 13px;
    color: var(--error-color);
}

/* Стилизация рамки инпута, если в нем допущена ошибка */
.custom-input.has-error {
    border-color: var(--error-color);
}
.custom-input.has-error:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.custom-session-status {
    background-color: #d1e7dd; /* Светло-зеленый фон */
    color: #0f5132;            /* Темно-зеленый текст */
    border: 1px solid #badbcc;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin: 20px 0px;
    text-align: center;
    font-weight: 500;
}
.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.form-footer a {
    color: var(--btn-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: var(--btn-hover);
    text-decoration: underline;
}

.reports-grid {
	padding: 0;
	margin: 0;
}

.report-card-1 {
	width: 100%;
	padding: 1em;
	margin-bottom: 1em;
	border-radius: 6px;
	font-size: 1.2rem;
	font-family: var(--dense-font);
	color: var(--text-color);
	transition: border-color 0.2s;
	outline: none;
	box-sizing: border-box;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, rgba(54, 162, 235, 0.1), rgba(210, 220, 220, 0.4));
	border: 1px solid rgba(255, 255, 255, 0.4);
	/* Мягкая металлическая тень */
	box-shadow: 0 8px 12px 0 rgba(31, 38, 135, 0.15);
}

.version-base {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.report-btn {
	padding: 3px;
	margin: auto 2px;
	display: inline-flex;
        background: var(--btn-hover);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
	line-height: 0;
}

.report-btn:hover {
        background: var(--btn-color);
        box-shadow: 0 4px 8px rgba(76, 115, 180, 0.5);
}

.report-pro {
    background: rgba(120, 53, 69, 0.85);
}

.report-pro:hover {
    background: #A8435A;
    box-shadow: 0 4px 8px rgba(184, 51, 115, 0.3);
}

.to-pro {
    background: transparent;
}

.to-pro:hover {
    background: rgba(184, 51, 115, 0.025);
    border-radius: 4px;
    box-shadow: inset 0 0 12px rgba(184, 51, 115, 0.75);
}

.hidden { display: none !important; }

.dashboard {
    width: 100%; 
    max-width: 1440px; 
    margin: 20px auto; 
    padding: 20px; 
    box-sizing: border-box;

    display: grid; 
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px; 
    background: transparent; 
    padding: 10px;
    margin-top: 30px; 
    text-align: left;
}
.single-panel {
	background-color: var(--form-bg);
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 800px;
	margin: 60px auto;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 300;
	font-family: var(--dense-font);
	line-height: 1.5;
	color: #000000;
}

.single-panel h2 {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.15;
}

.single-panel ul {
	list-style-position: inside;
	list-style-type: circle;
	padding-left: 0;
}

.left-panel { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-right: 25px; 
    justify-content: flex-start;
    background: var(--form-bg);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px;
    box-sizing: border-box;
    min-height: 560px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.main-title { font-size: 1.8rem; font-weight: 400; line-height: 1.15; text-align: center;}
.main-accent { font-size:1.9rem; font-weight: 500; color: var(--btn-color); }
.main-meanings { display: flex; flex-direction: column; gap: 15px; max-width: 640px; padding: auto 1.5rem; }
.main-subtitle { font-size: 1.3rem; font-weight: 400; line-height: 1.5; color: var(--text-color); margin-bottom: 10px;}
.main-text {
    font-size: 1.2rem;
    font-family: var(--dense-font);
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 10px;
}

.factor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.factor-list-item {
    display: flex;
    align-item: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-family: var(--dense-font);
    font-size: 1.2rem;
    line-height:1.6;
    margin-bottom: 0em;
}
.bullet {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.6rem;
    border-radius: 50%;
    background: var(--btn-color);
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
}
.habits-summary {
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-top: 1.5rem;
    border: 1px solid #4a9eff55;
}

div#generalText {
    /* font-family: sans-serif; */
    font-size: 1.1rem;
    line-height: 1.5;
    color: #0f2c18;
}

div#generalText h3 {
  font-family: var(--dense-font);
  font-weight: 500;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
}

div#generalText ul {
  list-style-type: none;
  padding-left: 0;
}

div#generalText li {
  margin-bottom: 15px;
}

div#generalText .desc {
  font-size: 0.9rem;
  color: #666;
  margin: 4px 0 0 0;
}

.chart-container {
    width: 100%;
    margin: 0 auto;
    height: 480px;
    position: relative;
}

.chart-container canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.right-panel { 
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    min-width: 0;
}

.top-right-box {
    width: 100%;
    min-height: 320px;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    background: var(--form-bg);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    padding-bottom: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.disclaimer {
    font-family: var(--dense-font);
    font-weight:400;
    font-size: 1rem;
    color: #858585;
    margin-top: 10px;
}

.legal {
    margin-top: 20px;
    font-weight:400;
    font-size: 1rem;
    color: #555555;
}
.bar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 15px;
    height: 30px;
}

.bar-chart-wrapper {
    flex-grow: 1;
    width: 100%;
    position: relative;
    min-width: 0;
}

.bar-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
}

.bottom-right-box { 
    min-height: 280px;
    color: var(--gray-color);
    font-weight: 400;
    background-color: #f2f8f7;
    border: 1px solid #d1e3e1;
    border-radius: 16px; 
    padding: 20px 30px; 
    box-sizing: border-box;
    transition: all 0.3s ease; 
}

h4.factorTitle {
    font-family: var(--dense-font);
    margin-top: 5px;
}

.factorTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

#factorDescription {
    font-family: var(--dense-font);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
    color: inherit;
}

div#factorDescription ul {
	list-style-position: inside;
	list-style-type: circle;
	padding-left: 0;
}

div#factorDescription li {
  margin-bottom: 5px;
}
p#metaDescription {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #074d6b;
    border-top: 1px solid var(--gen-badge);
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: inset 0px 5px 10px -3px rgba(41, 87, 87, 0.15);
    padding: 12px;
    margin: 0;
}

.genotype-badge { 
    display: inline-block; 
    background: var(--gen-badge); 
    color: #005533;
    padding: 5px 10px; 
    font-weight: bold; 
    letter-spacing: 1px;
    font-size: 1.0rem;
    margin-right: 10px; 
}
.genotype-silver {
    background: #f0f2f4;
    color: var(--btn-hover); /*#0f77a2;*/
    text-shadow: 0 0 8px rgba(200, 205, 255, 0.6);
    box-shadow: 0 -5px 8px 0px rgba(200, 225, 255, 0.35);
}

.genotype-gold {
    background: #f2c94c;
    color: #785118;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    box-shadow: 0 -5px 8px 0px rgba(212, 175, 55, 0.35);
}

.rs-id {
    color: #475569;
    background: #e2edea;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--mono-font);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.proxy {
    font-family: var(--dense-font);
    font-size: 1rem;
    color: #d97706;
    font-weight: 400;
    margin-left: 6px;
}

.bar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px;
}

.reset-btn {
    padding: 6px 12px; 
    font-size: 13px; 
    cursor: pointer; 
    border-radius: 6px; 
    border: 1px solid #cbd5e1; 
    background: #e9e9e9; 
    color: #64748b; 
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
}

.reset-btn:hover { 
    background: #f1f5f9; 
    color: #1e293b; 
}

.site-header {
    padding: 1rem 2rem;
    display: flex;
    gap: 1px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: var(--bg-header); /*#4E5B56; /*#6A6462; /*#1E2A35; /*#C8D3D5; /*#D5DCE4;*/
    color: #0F172a;
    box-shadow: 0 4px 15px -2px rgba(41, 87, 87, 0.5); /* #6c757d */
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-header .logo img {
    display: block;
    height: 56px;
    width: auto;
    /*filter: drop-shadow(0 0 3px rgba(200, 250, 255, 0.6));*/
}

.site-header .logo span {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    font-family: var(--dense-font);
    text-shadow: 2px 4px 12px rgba(48, 133, 144, 0.25);
    color: var(--text-color);
    white-space: nowrap;
}

.site-header nav a {
    color: #1e555a; /* #9ca3af */;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: #0f172a;
}

.site-header nav a.registerBtn {
        padding: 8px 20px;
        background-color: var(--btn-color);
        color: #d5dce4;
	text-decoration: none;
        border: none;
        border-radius: 8px;
        font-weight: 500;
}
.site-header nav a.registerBtn:link,
.site-header nav a.registerBtn:visited {
    text-decoration: none;
    color: #d5dce4;
}
.site-header nav a.registerBtn:hover {
        background-color: var(--btn-hover);
	color: #d5dce4;
        /* transform: translateY(-2px); */
        box-shadow: 0 4px 12px rgba(76, 115, 180, 0.3);
}
.site-content {
    flex: 1; /* Растягивает контент, чтобы футер всегда был внизу */
}

.site-footer {
    background-color: var(--bg-footer);
    color: #d4dce4;
    text-align: center;
    padding: 1.6rem;
    font-size: 0.875rem;
    border-top: 1px solid #1e293b;
}

.site-footer a, a:link, a:visited {
	color: #5ca6b2;
	text-decoration: none;
}

.site-footer a:hover {
    color: #74cdd9;
}

.drop-zone {
        border: 2px dashed #ccc;
        border-radius: 12px;
        padding: 20px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fafafa;
        position: relative;
}

.drop-zone:hover {
        border-color: #888;
        background: #f5f5f5;
}

.drop-zone.dragover {
        border-color: #308590;
        background: #e9ecef;
        transform: scale(1.02);
}

.drop-zone.dragover .drop-zone-content {
        color: #308590;
}

.drop-zone-content {
        pointer-events: none;
        color: #666;
}

.drop-zone-content svg {
        margin-bottom: 12px;
        color: #999;
}

.drop-zone-content p {
        margin: 4px 0;
    }

.drop-zone-hint {
        font-size: 14px;
        color: #999;
}

.drop-zone-formats {
        font-size: 12px;
        color: #aaa;
        margin-top: 8px;
}

.vendors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.vendor-badge {
    position: relative;
    display: inline-block;
    cursor: help;
}

.vendor-logo {
    display: block;
    pointer-events: none;
    filter: opacity(30%);
    transition: all 0.2s ease;
}

.vendor-badge:hover .vendor-logo {
    filter: opacity(100%);
}

.source-hint {
    font-size: 1rem;
    color: var(--gray-color);
    text-align: center;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info {
        margin-top: 16px;
        padding: 12px 16px;
        background: #e9ecef;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
	max-width: 100%;
	box-sizing: border-box;
}

.file-info #fileName {
        font-weight: 500;
        color: #308590;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

.file-info #fileSize {
        font-size: 14px;
        color: #666;
        white-space: nowrap;
	flex-shrink: 0;
}

input[type="checkbox"] { margin-top: 10px; }

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px; /* Фиксированные отступы */
    flex-shrink: 0; /* Не сжимается */
    flex-grow: 0; /* Не растягивается */
    width: auto; /* Только по содержимому */
    min-width: 0; /* Не больше содержимого */
    line-height: 1;
    transition: color 0.2s;
}

.remove-btn:hover {
        color: #d32f2f;
}

#reportBtn {
	width: 100%;
        margin-top: 16px;
        padding: 12px 32px;
        background: #308590;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
}

#reportBtn:hover:not(:disabled) {
        background: #00a192;
        /* transform: translateY(-2px); */
        box-shadow: 0 4px 12px rgba(76, 115, 180, 0.3);
}

#reportBtn:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.6;
}

.demo {
	width: 100%;
	border-top: 1px solid #aaa;
	text-align: center;
}
.demo-btn {
    padding: 12px 32px;
    background: #dd7820;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn:hover {
    background: #F57C00;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}
.demo-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.demo-warn {
    margin: 1em 0;
    color: #dd7820;
    font-size: 1.1rem;
    font-family: var(--dense-font);
    font-weight: 400;
    align-items: center;
}

.status { margin-top: 12px; font-size: 14px; color: #6c757d; font-weight: 500; }
.error { color: #dc3545; margin-top: 12px; font-size: 14px; font-weight: 500; }
.progress { display: none; margin-top: 16px; }
.progress-bar { height: 12px; background: #e9ecef; border-radius: 6px; overflow: hidden; }
.progress-bar .fill { height: 100%; width: 0%; background: #83c5be; transition: width 0.3s; }
.progress-text { display: block; text-align: right; font-size: 12px; color: #6c757d; margin-top: 4px; }

.main-meaning > p:first-of-type em {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #627d98;
    display: block;
    margin-bottom: 32px;
    font-style: normal;
    font-weight: 400;
    border-left: 2px solid #34495e;
    padding-left: 20px;
}

.interview-q {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: #0f172a;
    margin-top: 48px;
    margin-bottom: 18px;
    position: relative;
    letter-spacing: -0.01em;
}

.interview-a {
    padding-left: 0px;
}

.interview-a p {
    font-size: 1.125rem;
    color: #334e68;
    margin-bottom: 20px;
    font-weight: 400;
}

.interview-a strong {
    color: #0f172a;
    font-weight: 500;
}

@media (max-width: 992px) {
    .dashboard { 
        grid-template-columns: 1fr; /* Колонки превращаются в строки */
        gap: 20px; 
        padding: 15px; 
    }

    .left-panel {
        border-right: none;               /* Убираем вертикальную черту */
        border-bottom: 1px solid #e2e8f0; /* Делаем горизонтальный разделитель */
        padding-right: 0;
        padding-bottom: 20px;
    }

    .chart-container {
        height: 350px; /* Немного уменьшаем радар на телефонах */
    }
    .interview-q::before {
        position: static;
        display: inline-block;
        margin-right: 8px;
    }
    .interview-q {
        font-size: 1.2rem;
    }
}
