/* public/css/style.css */

html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Стиль для кнопки */
.btn-dark {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.btn-dark:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.page-header {
	margin-top:20px;
	margin-bottom: 20px;
}

/* Стиль для полей ввода */
.form-control {
    border-radius: 5px;
}

/* Стиль для кнопки */
.btn {
    border-radius: 5px;
}

/* Заголовки мануалов */
.manual-panel .panel-title,
.manual-view-title {
    font-weight: 600;
}

/* Иконки действий в заголовках */
.heading-elements .edit-icon {
    color: #9E9E9E;
    cursor: pointer;
    margin-left: 12px;
}
.heading-elements .edit-icon:hover { color: #757575; }

/* Sidebar user (профиль/выход) */
.sidebar-user a {
    color: #bfbfbf;
    margin-right: 10px;
}
.sidebar-user a:hover { color: #ffffff; }
.sidebar-user .icon-user { margin-right: 15px; }
body.sidebar-xs .sidebar-user { text-align: center; }
body.sidebar-xs a.first_name { margin-bottom: 15px; }
body.sidebar-xs a.first_name span { display: none; }
body.sidebar-xs a.logout,
body.sidebar-xs a.first_name {
    display: block;
    width: 100%;
    text-align: center;
}
body.sidebar-xs a.logout i,
body.sidebar-xs a.first_name i { margin: 0; }

/* search-by-manuals (общая форма поиска в navbar) */
form.search-by-manuals { padding: 5px; }
input.search {
    width: 400px;
    border-radius: 15px;
    border: 1px solid #cbcbcb;
    padding: 5px 15px;
}
form.search-by-manuals input[type="submit"] {
    border-radius: 15px;
    background-color: black;
    color: white;
    font-size: 15px;
    line-height: 15px;
    padding: 8px 20px;
    font-weight: 300;
    border: none;
    margin-left: -60px;
}
SPAN.search-by {
    font-size: 15px;
    line-height: 15px;
    padding-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
SPAN.search-by LABEL {
    margin-bottom: 0;
    margin-left: 15px;
    font-size: 15px;
    line-height: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
SPAN.search-by LABEL input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

/* My tags list: компактная выдача бейджей один за другим */
.my-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-chip .tag-menu-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 0 2px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
}
.tag-chip .dropdown-menu {
    min-width: 160px;
}
.tag-chip .dropdown-menu > li > a { display: flex; align-items: center; gap: 8px; }

/* Users table: обеспечить, чтобы dropdown не скрывался под границей таблицы */
.users-table-wrap { position: relative; }
.users-table-wrap .dropdown-menu { z-index: 1001; }

/* Users: actions column with aligned icons */
.user-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 90px; /* чтобы колонка не прыгала при переносах */
}
.user-actions a { color: #606060; }
.user-actions a:hover { color: #333; }
.user-actions .icon-bin { color: #c0392b; }
.user-actions .icon-bin:hover { color: #a93226; }

/* Mobile adjustments */
@media (max-width: 576px) {
    form.search-by-manuals {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 8px 10px;
        overflow-x: hidden;
    }
    form.search-by-manuals input.search { width: 100%; max-width: 100%; }
    form.search-by-manuals input[type="submit"] {
        margin-left: 0;
        width: 100%;
        margin-top: 6px;
        margin-bottom: 8px;
    }
    SPAN.search-by {
        padding-left: 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 12px;
        width: 100%;
    }
    SPAN.search-by LABEL { margin-left: 0; }
}