/* style.css */
body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2c 100%);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

.logo svg {
    animation: fizz 4s infinite ease-in-out;
}

@keyframes fizz {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

h1 {
    font-size: 2.5em;
    font-weight: 600;
    color: #00FFFF;
    margin: 20px 0;
    text-shadow: 0 0 10px #00BFFF;
    animation: fadeIn 1.5s ease-out;
}

p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 10px auto; /* Центрирование с auto */
    color: #b0c4de;
    text-align: center; /* Явное центрирование текста */
}

footer {
    margin-top: auto;
    font-size: 0.9em;
    color: #808080;
    width: 100%; /* Для центрирования */
}

footer p {
    margin: 0 auto;
    max-width: 600px;
}

/* Улучшенные анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated-text {
    animation: fadeIn 2s ease-out forwards;
    opacity: 0;
}

.animated-text:nth-child(1) {
    animation-delay: 0.5s;
}

.animated-text:nth-child(2) {
    animation-delay: 1s;
}

.animated-text:nth-child(3) {
    animation-delay: 1.5s;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,191,255,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: pulse 5s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(1); }
}

/* Admin styles */
.admin-body {
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2c 100%);
    color: #e0e0e0;
    padding: 10px;
    font-size: 0.8em; /* Вернул уменьшенный размер для компактности */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto; /* Прокрутка при необходимости */
    box-sizing: border-box; /* Для правильного учета отступов */
}

h1, h2 {
    color: #00FFFF;
    text-shadow: 0 0 5px #00BFFF;
    font-size: 1.5em; /* Уменьшил для компактности */
    text-align: center;
    margin: 10px 0;
}

form {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,191,255,0.2);
    margin-bottom: 10px;
    max-width: 500px; /* Уменьшил ширину для адаптации */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

input, button {
    background: #1a1f2c;
    border: 1px solid #00BFFF;
    color: #e0e0e0;
    padding: 6px;
    margin: 4px 0;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    width: 100%;
    max-width: 300px; /* Ограничил для предотвращения растяжения */
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus, button:focus {
    border-color: #00FFFF;
    outline: none;
}

button {
    background: #00BFFF;
    color: #0d1117;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #00FFFF;
}

table {
    width: 100%;
    max-width: 900px; /* Уменьшил максимальную ширину */
    margin: 10px auto;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,191,255,0.2);
    font-size: 0.8em;
}

th, td {
    border: 1px solid rgba(0,191,255,0.1);
    padding: 6px; /* Уменьшил отступы */
    text-align: center;
}

th {
    background: #1a1f2c;
    color: #00FFFF;
    font-weight: 600;
}

tr:hover {
    background: rgba(0,191,255,0.1);
}

td input {
    width: 100%; /* Полная ширина ячейки, но с ограничением */
    max-width: 150px; /* Ограничил для URL и alias, чтобы не растягивалось */
    box-sizing: border-box;
}

label {
    color: #b0c4de;
    margin: 4px 0;
    font-size: 0.9em;
}

a {
    color: #00BFFF;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
    transition: color 0.3s;
}

a:hover {
    color: #00FFFF;
}

/* Login styles */
form input[type="password"] {
    max-width: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-body {
        padding: 5px;
    }
    form {
        max-width: 100%;
        padding: 8px;
    }
    table {
        font-size: 0.7em;
    }
    td input {
        max-width: 100px;
    }
}

/* Error message */
.error {
    color: #FF4500;
    margin-top: 10px;
    font-size: 1em;
}

/* Ensure body for these pages matches main site */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Reuse animations and effects */
main form {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,191,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 20px auto;
}

main input, main button {
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}