:root {
    --primary: #6200ee;
    --primary-hover: #3700b3;
    --secondary: #03dac6;
    --error: #b00020;
    --text: #212121;
    --text-light: #666;
    --background: #fafafa;
    --white: #fff;
}

* {
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 24px;
    background: var(--background);
    color: var(--text);
}

.container {
    max-width: 600px;
    margin: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 32px 24px;
}

h1 {
    margin-top: 0;
    font-size: 28px;
    color: var(--primary);
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-field {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: var(--primary);
    outline: none;
}

.input-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--white);
    padding: 0 4px;
    font-size: 12px;
    color: var(--text-light);
}

.dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.help-button {
    width: 20px;
    height: 20px;
    font-size: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.help-tooltip {
    position: absolute;
    top: 28px;
    left: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px;
    font-size: 14px;
    color: var(--text);
    display: none;
    z-index: 5;
}

.button {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 8px;
}

.button:hover {
    background: var(--primary-hover);
}

.link-container {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
}

.link-field {
    flex: 1;
    border: 2px solid #ccc;

    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
}

.copy-button {
    border-radius: 8px;
}

.row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.row>* {
    flex: 1;
}

.mode-toggle {
    margin-bottom: 20px;
}

.mode-toggle label {
    font-weight: bold;
    cursor: pointer;
}

.input-with-button {
    display: flex;
    align-items: center;
    position: relative;
}

.input-with-button .input-field {
    flex: 1;
    padding-right: 36px;
    /* отступ для кнопки */
}

.small-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    width: 28px;
    padding: 0;
    font-size: 16px;
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    outline: none;
}

.small-button:hover {
    background-color: rgba(98, 0, 238, 0.1);
    border-radius: 50%;
}