/*Переменные*/ 
:root {
    --bg-main: #0f172a;
    --bg-header: #111827;
    --bg-card: #1e293b;
    --text-main: #e5e7eb;
    --text-soft: #cbd5e1;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --border: #334155;
    --danger: #ef4444;
    --danger-hover: #dc2626;
}
/*Общие сбросы*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*body*/
html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/*Шапка*/
header {
    background: var(--bg-header);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

    header h1 {
        font-size: 28px;
    }
/*Навигация*/
nav a {
    color: var(--text-soft);
    text-decoration: none;
    margin: 0 12px;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

    nav a:hover {
        color: var(--accent);
        background: rgba(56, 189, 248, 0.1);
    }
/*Контейнер*/
.container {
    width: 85%;
    max-width: 1100px;
    margin: 30px auto;
    flex: 1 0 auto;
}
/*Заголовки*/
h2 {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    color: var(--text-main);
    margin: 15px 0 8px;
}

p {
    margin-bottom: 10px;
    color: var(--text-soft);
}
/*Карточки, окна*/
.readable-window,
.readable-window2 {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px 30px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}
/*Элементы списка*/
.menu-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

    .menu-item:hover {
        background: rgba(56, 189, 248, 0.05);
    }
/*Кнопки*/
button {
    background: var(--accent);
    color: #020617;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

    button:hover {
        background: var(--accent-hover);
    }
/*Формы*/
form input,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #020617;
    color: var(--text-main);
}

    form input:focus,
    form select:focus {
        border-color: var(--accent);
        outline: none;
        box-shadow: 0 0 5px rgba(56, 189, 248, 0.4);
    }
/*Футер*/
footer {
    background: var(--bg-header);
    color: var(--text-soft);
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 14px;
}
/*Центр*/
.center-text {
    text-align: center;
}
/*Просроченность*/
.overdue {
    color: var(--danger);
    font-weight: bold;
}
/*Просроченность*/
.overdue {
    background: rgba(239, 68, 68, 0.12);
    border-left: 4px solid #ef4444;
    padding-left: 10px;
    border-radius: 6px;
}

    .overdue p {
        color: #fecaca;
    }
/*Кнопки ролей*/
.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.role-btn {
    display: block;
    text-align: center;
    background: #00bcd4;
    color: #1a1a2e;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

.role-btn:hover {
    background: #0097a7;
    transform: scale(1.03);
}
/*Кнопка выхода*/
.logout-btn {
    display: inline-block;
    background: #ff4c4c;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
}

.logout-btn:hover {
    background: #cc0000;
    transform: scale(1.03);
}
/*Элементы книг*/
.book-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.book-item img {
    width: 70px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
/*Шапка*/
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
/*Логотип*/
.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
/*Доп. стиль*/
.suggested {
    border: 1px dashed var(--accent);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: rgba(56, 189, 248, 0.05);
}
/*Левая и правя часть = фотографи*/
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    width: 20%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

body::before {
    left: 0;
    background-image: url('left.png');
}

body::after {
    right: 0;
    background-image: url('right.png');
}
