@import "base_style.css";
/*@import "jsoneditor"*/
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

h1 {
    font-weight: 500;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background: #e9f2fa;
    border-right: 1px solid #d0dbe7;
    padding: 20px 15px;
    box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.04);
}

.sidebar::before {
    content: "Навигация";
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #334155;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar a:hover {
    background: #d8e7f5;
    color: #0f172a;
}

.sidebar a.active {
    background: #c6ddf5;
    font-weight: 600;
}

.sidebar li:last-child a {
    color: #b91c1c;
}

.sidebar li:last-child a:hover {
    background: #fde2e2;
    color: #7f1d1d;
}

.sidebar.admin {
    background: #e9f2fa;
}

.sidebar.user {
    background-color: lightgreen;
}

main {
    margin: 5px;
    flex: 1;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Общие стили для формы */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout {
    flex: 1;
    display: flex;
}

.container {
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="submit"] {
    padding: 0.75rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

input[type="submit"]:hover {
    background-color: #1d4ed8;
}

/*.navbar {*/
/*    padding: 1rem;*/
/*    background-color: #f8fafc;*/
/*    border-bottom: 1px solid #e2e8f0;*/
/*}*/

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}