/* main.css - основные стили сайта библиотеки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Unbounded', Arial, sans-serif;
}

body {
    background: #FFFFFF;
    color: #222222;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 12000px;
    margin: 0 auto;
    background: #FFFFFF;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

.logo-container {
    text-align: center;
    padding: 5px 0;
    background: #FFFFFF;
}

.logo {
    max-width: 800px;
    margin: 0 auto;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, #6BFFB8 0%, #5542BB 50%, #6B5CE7 100%);
    margin: 8px 0 15px 0;
    border-radius: 2px;
    opacity: 0.7;
}

.content-wrapper {
    display: flex;
    padding: 10px;
}

.sidebar {
    width: 30%;
    padding: 12px;
    background: #f9f9f9;
    border-right: 2px solid #5542BB;
}

.main-content {
    width: 70%;
    padding: 12px 15px;
}

.menu-title {
    background: #5542BB;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.menu {
    list-style: none;
    margin-bottom: 20px;
}

.menu li {
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #f0f0f0;
    border-left: 3px solid #6BFFB8;
    border-radius: 5px;
}

.menu li:hover {
    background: #e0e8e0;
    cursor: pointer;
}

.menu a {
    color: #222222;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.text-content {
    font-size: 16px;
    line-height: 1.8;
}

.text-content p {
    margin-bottom: 15px;
    text-indent: 25px;
}

.text-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 8px;
}

.library-image {
    float: right;
    width: 45%;
    margin: 0 0 15px 15px;
    border-radius: 8px;
}

.auth-form {
    background: #e8f4e8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #6BFFB8;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    color: #333333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #5542BB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(85, 66, 187, 0.2);
}

.captcha-container {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background: rgba(85, 66, 187, 0.05);
    border-radius: 8px;
}

.captcha-img {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 5px;
    background: white;
}

.refresh-link {
    color: #5542BB;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.refresh-link:hover {
    color: #ADFF00;
}

.submit-btn {
    background: linear-gradient(135deg, #5542BB 0%, #6B5CE7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4936a5 0%, #5d4ac9 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(85, 66, 187, 0.3);
}

footer {
    background: #5542BB;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

.lanbook-banner {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.lanbook-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.lanbook-banner img:hover {
    transform: scale(1.02);
}

.lanbook-banner p {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.user-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(107, 255, 184, 0.1);
    border-radius: 8px;
}

.user-name {
    font-weight: 600;
    color: #5542BB;
    margin-bottom: 5px;
}

.user-role {
    font-size: 14px;
    color: #6B5CE7;
    font-weight: 500;
}

.admin-links {
    margin-top: 20px;
}

.content-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.page-title {
    color: #5542BB;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6BFFB8;
    text-align: center;
}

/* Стили для личного кабинета */
.formular-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.formular-table th {
    background: #5542BB;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.formular-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
}

.formular-table tr:last-child td {
    border-bottom: none;
}

.formular-table tr:hover {
    background: #f8f9fa;
}

.formular-table del {
    color: #999;
    text-decoration: line-through;
}

.no-records {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.back-button {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background: #5542BB;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #4936a5;
    transform: translateY(-2px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        width: 100%;
        box-shadow: none;
    }
    
    .content-wrapper {
        flex-direction: column;
        padding: 5px;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #5542BB;
        margin-bottom: 15px;
    }
    
    .main-content {
        width: 100%;
        padding: 10px;
    }
    
    .logo {
        max-width: 300px;
    }
    
    .menu-title {
        font-size: 16px;
    }
    
    .menu li {
        font-size: 14px;
    }
    
    .text-content {
        font-size: 15px;
    }
    
    .library-image {
        width: 100%;
        float: none;
        margin: 0 0 15px 0;
    }
    
    .formular-table {
        font-size: 12px;
    }
    
    .formular-table th,
    .formular-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .text-content {
        font-size: 14px;
    }
    
    .menu-title {
        font-size: 15px;
        padding: 6px;
    }
    
    .menu li {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .form-group input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .formular-table {
        font-size: 11px;
    }
    
    .formular-table th,
    .formular-table td {
        padding: 6px 3px;
        font-size: 11px;
    }
    
    footer {
        padding: 10px;
        font-size: 12px;
    }
}

/* Специальные стили для старых браузеров */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .content-wrapper {
        display: block;
    }
    
    .sidebar {
        width: 100%;
        float: none;
    }
    
    .main-content {
        width: 100%;
        float: none;
    }
}
.menu a {
    font-weight: 600; /* Жирный шрифт */
    font-size: 15px;  /* Немного увеличим размер */
}

/* Увеличим также размер для мобильных устройств */
@media (max-width: 768px) {
    .menu a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .menu a {
        font-size: 14px;
    }
}