body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Меню === */
header ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    gap: 15px;
}

header li a {
    text-decoration: none;
    padding: 10px 15px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    font-size: 14px;
}

header li a:hover {
    background-color: #555;
}

/* === Основной контейнер === */
.container {
    width: 90%;
    max-width: 600px;
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.container h1,
.container h2 {
    text-align: center;
    color: #333;
}

/* === Форма === */
.redirect-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.redirect-form input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.redirect-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.redirect-form button:hover {
    background-color: #0056b3;
}

/* === Список редиректов === */
.redirect-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.redirect-item {
    display: flex;
    justify-content: space-between;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.redirect-item span {
    font-size: 16px;
    color: #333;
    word-break: break-word;
}

.redirect-item button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.redirect-item button:hover {
    background-color: #c82333;
}

/* === Правила === */
.rules {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 6px;
    color: #856404;
}
