/* фиксим фон */
html {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #8a2be2, #ff69b4, #ffd700); 
    margin: 30px; 
    color: #333;
    position: relative;
    overflow-x: hidden;
    /* фиксим фон */
    min-height: 100vh;
    background: linear-gradient(135deg, #8a2be2, #ff69b4, #ffd700); 
    background-repeat: no-repeat;
    background-attachment: fixed; /* по желанию */
    background-size: cover;       /* по желанию */
}

h1 {
    text-align: center;
    color: #ffd700; 
    margin-bottom: 25px; 
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}


@keyframes twinkle {
    0% { opacity: 0.2; } 
    100% { opacity: 0.6; } 
}


@keyframes float1 {
    0% { background-position: 0% 0%; }
    25% { background-position: 25% 25%; }
    50% { background-position: 50% 50%; }
    75% { background-position: 75% 75%; }
    100% { background-position: 100% 100%; }
}


@keyframes float2 {
    100% { background-position: 0% 100%; }
    75% { background-position: 0% 75%; }
    50% { background-position: 0% 50%; }
    25% { background-position: 0% 25%; }
    0% { background-position: 0% 0%; }
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #ffd700 1px, transparent 1px);
    background-size: 50px 50px; 
    opacity: 0.4; 
    animation: float1 60s infinite linear, twinkle 3s infinite alternate; 
    pointer-events: none;
    z-index: -1;
}


body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #ffd700 1px, transparent 1px);
    background-size: 40px 40px; 
    opacity: 0.3; 
    animation: float2 65s infinite linear, twinkle 4s infinite alternate;
    z-index: -1; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9); 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1; 
}

.menu {
    margin-bottom: 25px;
}

.menu a {
    display: inline-block;
    padding: 12px 18px; 
    margin-right: 12px; 
    text-decoration: none;
    color: white;
    background-color: #ff69b4; 
    border-radius: 6px; 
    transition: all 0.3s ease; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu a:hover {
    background-color: #d5007f; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px #ffd700; 
    transform: translateY(-2px); 
}

.menu a.active {
    background-color: #8a2be2; 
}

.menu .sub-menu {
    margin-top: 12px; 
}

.menu .sub-menu a {
    padding: 6px 12px; 
    font-size: 14px;
    background-color: #dda0dd; 
    color: black;
    border-radius: 5px; 
}

.menu .sub-menu a.active {
    background-color: #ffd700; 
    color: #333;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px; 
}

.table th, .table td {
    padding: 12px; 
    border: 1px solid #ddd;
    text-align: left;
}

.table th {
    background-color: #ff69b4; 
    color: white;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: rgba(255, 105, 180, 0.1);
}

.table tr:hover {
    background-color: rgba(138, 43, 226, 0.2); 
}

.pagination {
    margin-top: 12px; 
}

.pagination a {
    display: inline-block;
    padding: 6px 12px; 
    margin-right: 6px; 
    text-decoration: none;
    color: #8a2be2; 
    border: 1px solid #8a2be2;
    border-radius: 6px; 
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #ffd700; 
    color: #333;
    box-shadow: 0 0 10px #ffd700; 
}

.pagination a.active {
    background-color: #ff69b4; 
    color: white;
    border-color: #ff69b4;
}

.form {
    max-width: 600px;
}

.form label {
    display: block;
    margin-bottom: 6px; 
    font-weight: bold;
}

.form input, .form select, .form textarea {
    width: 100%;
    padding: 10px; 
    margin-bottom: 18px; 
    border: 1px solid #ccc;
    border-radius: 6px; 
    box-sizing: border-box;
}

.form textarea {
    height: 90px; 
}

.form input[type="submit"] {
    background-color: #ffd700; 
    color: #333;
    border: none;
    cursor: pointer;
    padding: 12px; 
    font-size: 16px;
    border-radius: 6px; 
    transition: all 0.3s ease;
}

.form input[type="submit"]:hover {
    background-color: #ffb347; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 12px #8a2be2;
    transform: translateY(-2px);
}

.message {
    margin-bottom: 18px; 
    padding: 12px; 
    border-radius: 6px; 
}

.message.success {
    background-color: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.list {
    margin-bottom: 25px; 
}

.list a {
    display: block;
    padding: 10px; 
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
    border-radius: 4px; 
}

.list a:hover {
    background-color: rgba(255, 255, 0, 0.2); 
}

.list a.active {
    color: #8a2be2; 
    font-weight: bold;
}

.back-link {
    display: inline-block;
    padding: 8px 12px;
    margin-top: 10px;
    text-decoration: none;
    color: #8a2be2; 
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #8a2be2;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-link:hover {
    background-color: #ffd700; 
    color: #333;
    box-shadow: 0 0 10px #ffd700; 
}
