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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.login-form h2 {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-weight: normal;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #27ae60;
    color: white;
}

.btn-small:hover {
    background: #219a52;
}

.investigations-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-collapse: collapse;
}

.investigations-table th,
.investigations-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.investigations-table th {
    background: #34495e;
    color: white;
    font-weight: 500;
}

.investigations-table tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

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

.header-actions h2 {
    color: #2c3e50;
}


.investigation-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-actions .btn {
    width: auto;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #e74c3c;
    color: white;
}

.alert-success {
    background: #27ae60;
    color: white;
}



.current-stage {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}


.form-control {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-small:hover {
    opacity: 0.9;
}

/* Стиль для основной кнопки */
.btn-small {
    background-color: #3498db;
    color: white;
}

/* Стиль для вторичной кнопки */
.btn-small.btn-secondary {
    background-color: #6c757d;
    color: white;
}




/* Стили для кнопки сброса сохраненного анализа */
.reset-analysis-btn {
    background-color: #ffc107;
    color: #212529;
    margin-left: 10px;
}

.reset-analysis-btn:hover {
    background-color: #e0a800;
}

.question-card.partially-selected {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.question-card.partially-selected .question-header {
    background-color: #fff3cd;
}




/* === Language Switcher === */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  color: #6c757d;
}

.lang-link {
  text-decoration: underline;
  color: #007bff;
  cursor: pointer;
}

.lang-link:hover {
  color: #0056b3;
}

.lang-current {
  font-weight: bold;
  color: #6c757d;
}

/* Стили для футера */
.main-footer {
    color: black;
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: auto; /* Это прижмет футер к низу */
}

/* Если нужно убедиться, что футер всегда внизу даже при малом контенте */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Важно: вся высота viewport */
}

.main-container {
    flex: 1; /* Это заставит контейнер занять всё доступное пространство */
}

/* Дополнительные стили для лучшего внешнего вида футера */
.main-footer p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
    max-width: auto;
    margin-left: auto;
    margin-right: auto;
}

.register-form .terms-checkbox input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    margin: 0 10px 0 0 !important;
    transform: scale(1.2) !important;
}

.register-form .terms-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    flex-direction: row !important;
}

