body {
    margin: 0;
    font-family: InterDisplay, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f3f3f3;
}

iframe{
    border: none;
    
}
a {text-decoration: none;color: inherit;}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #c6c6c6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b1b1b1;
}


.header {
    height: 60px;
    background-color: #ffffff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}


.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #F03C3C;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 600;
}

.header .user-settings button {
    color: #5C5C5C;
    border: none;
    /* padding: 8px 15px; */
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background-color: transparent;
}


.header .user-settings button:hover {
    color: #F03C3C;
}

/* .header .user-settings path:hover {
    stroke: #F03C3C;
} */

.main {
    display: flex;
    flex: 1;
    overflow: hidden;
}


.sidebar {
    width: 280px;
    background-color: #f3f3f3;
    color: #454545;
    font-size: 14px;
    font-weight: 600;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Для WebKit-браузеров */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c6c6c6;
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #b1b1b1;
}


.sidebar ul {
    list-style: none;
    padding: 0;
}


.sidebar ul li {
    margin: 10px 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
}


.sidebar ul li:hover {
    background-color: #fff;
    -webkit-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
}

.sidebar ul li.active {
    background-color: #F03C3C;
    color: #fff;
    -webkit-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
}

.menu-item .menu-icon path {
    stroke: #5C5C5C;
}

.menu-item.active .menu-icon path {
    stroke: #fff;
}

.menu-item-title {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #969696;
    text-transform: uppercase;
    margin-top: 26px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item .menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


.content {
    flex: 1;
    padding: 40px 20px 10px 20px;
    background-color: #f3f3f3;
    box-sizing: border-box;
}

.content-header {
    display: flex;
    justify-content: space-between;
}

.content-header .add-button {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.content-header .add-button:hover {
    color: #F03C3C;
    transition: .3s;
}

.content-header .add-button:hover path {
    stroke: #F03C3C;
    transition: .3s;
}

.content-header .add-button:active path {
    stroke: #ffffff;
    transition: .3s;
}

.content-header .add-button:active {
    background-color: #F03C3C;
    color: #ffffff;
    transition: .3s;
}

.content-section {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.hidden {
    display: none;
}


/* Таблица */
.table-container {
    overflow-x: auto;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 20px 12px;
    word-wrap: break-word;
}

th {
    background-color: #f3f3f3;
    color: #5C5C5C;
    font-weight: 700 !important;
}

tr {
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f3f3f3;
}

tr:hover {
    background-color: #f03c3c2c;
    transition: .2s;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: left;
}

.actions svg {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    /* fill: #5c5c5c; */
    transition: fill 0.3s ease;
}

.action-icon-edit path {
    stroke: #5eb264;
}

.action-icon-delete path {
    stroke: #F03C3C;
}


/* Поп-ап фоновый слой */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 1000;
}

/* Поп-ап окно */
.popup {
    background-color: #f7f7f7;
    /* padding: 20px; */
    border-radius: 10px;
    width: 30%;
    max-width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.popup h2 {
    margin-top: 0;
    font-size: 24px;
}

.popup input {
    width: -webkit-fill-available;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

.popup button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.title-input {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    margin-top: 20px;
}

.form-button-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px 10px 10px;
}

.btn-close {
    background-color: #F03C3C;
    color: #fff;
}

.btn-close:hover {
    background-color: #da3737;
}

.btn-save {
    background-color: #5eb264;
    color: #fff;
}

.btn-save:hover {
    background-color: #539c58;
}


input:focus {
    outline: 2px solid #dddddd;
}



.upload-container {
    /* background: #fff; */
    /* padding: 20px; */
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.custom-file-input {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.custom-file-input:hover {
    background-color: #2980b9;
}

.custom-file-input span {
    display: inline-block;
}

input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    border: none;
    margin: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: #c0c0c0;
}

/* Логин */


.body-login {
    margin: 0;
    font-family: InterDisplay, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title {
    text-align: center;
    color: #F03C3C;
}

.login-title .login-title-text {
    font-size: 40px;
    font-weight: 900;
}

.login-title .login-sub-subtitle {
    font-size: 14px;
    font-weight: 600;
}

.form-login {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: stretch;
    width: 110%;
}

.input-field {
    padding: 10px 10px 10px 40px;
    margin: 10px 0;
    border-radius: 10px;
    font-size: 16px;
    border: none;
    width: -webkit-fill-available;
}

input::placeholder {
    color: #cecece;
}

.login-button {
    width: -webkit-fill-available;
    padding: 10px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: .3s;
}

.login-button:hover {
    background-color: #F03C3C;
    color: #FFFFFF;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.forgot-password a {
    color: #000000;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.input-container {
    position: relative;

}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* Верхний список */

.top-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 0;
}

.top-bar ul li {
    background: #fff;
    padding: 10px;
    color: #454545;
    margin: 0px 20px 22px 0px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
    cursor: pointer;
}

.top-bar ul li:hover {
    background-color: #fff;
    -webkit-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
}

.top-bar ul li.active {
    background-color: #F03C3C;
    color: #fff;
    -webkit-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 4px 11px -8px rgba(34, 60, 80, 0.2);
}

/* .top-bar-item.active {
    background-color: #F03C3C;
    color: #FFFFFF;
} */

/* Контейнер для выпадающего меню */
.user-settings {
    position: relative;
    display: inline-block;
}

.user-settings-dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 160px;
    box-shadow: 0px 4px 6px 0px rgb(0 0 0 / 6%);
    z-index: 1;
    border-radius: 10px;
}

.user-settings-dropdown-content a{
    font-size: 14px;
    font-weight: 600;
    color: #5C5C5C;
}

.user-settings-dropdown-content a:hover {
    color: #F03C3C;
}


.show {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    right: 0;
    width: 100%;
    padding: 20px;
    top: 60px;
}

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}