/* Настройки */
.settings-card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.settings-card h3 {
    margin: 0 0 14px 0;
    font-size: 16px;
    color: #333;
}

.settings-hint {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    line-height: 1.4;
}

.settings-form-inline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.settings-form-inline .form-input {
    flex: 1;
    min-width: 150px;
}

.color-picker {
    width: 60px;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: none;
    padding: 2px;
}

/* Таблица цветов */
.settings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.settings-table thead th {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 2px solid #eee;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.settings-table tbody td {
    padding: 10px 6px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.code-badge {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
    vertical-align: middle;
    margin-right: 8px;
}

.color-hex {
    font-family: monospace;
    font-size: 13px;
    color: #666;
}

/* Кнопки */
.btn-sm {
    padding: 5px 10px;
    font-size: 13px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-box h3 {
    margin: 0 0 16px 0;
}

.form-row {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}