:root{
    --body-backg-light:#fff;
    --body-backg-dark:#222;
}
/* ######### Body #########*/
html, body {
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
    padding-bottom: 80px;
    background: var(--body-backg-light);
    color: #000;
}
html.no-scroll, body.no-scroll {
    overflow: hidden;
    height: 100%;
}
/* Темная тема */
html.dark-theme body {
    background: var(--body-backg-dark);
    color: #fff;
}
/* #####  ######*/







/* Фиксированное меню */
.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, color 0.3s;
}

html.dark-theme .fixed-bottom-menu {
    background: #333;
    color: #fff;
    border-top: 1px solid #555;
}

.fixed-bottom-menu a {
    text-align: center;
    flex: 1;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, transform 0.2s;
}

.fixed-bottom-menu a:hover {
    color: #007bff;
    transform: scale(1.1);
}

.fixed-bottom-menu .icon {
    font-size: 22px;
    margin-bottom: 3px;
    transition: transform 0.3s;
}

/* Канвас для App (снизу вверх) */
.offcanvas-app, .offcanvas-profile {
    position: fixed;
    background: #fff;
    z-index: 1100;
    padding: 20px;
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}
/*Темная*/
html.dark-theme .offcanvas-app,
html.dark-theme .offcanvas-profile {
    background: #222;
    color: #fff;
}
html.dark-theme .offcanvas-profile {
    background: #222;
    color: #fff;
    border-left: 1px solid #444;
}

html.dark-theme  .form-control{
	background-color: #333;
	color: #fff;
}
html.dark-theme  .form-control:focus{
	background-color: #333;
	color: #fff;
}
html.dark-theme .form-select{
	background-color: #333;
	color: #fff;
}
html.dark-theme  .form-check-label{
	color: #fff;
}
html.dark-theme  input:auto-fill{
	background-color: #333 !important;
  }
  
  html.dark-theme  input:-webkit-autofill {
	background-color: #333 !important;
  }





/* App (внизу) */
.offcanvas-app {
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
}

.offcanvas-app.show {
    bottom: 0;
}

/* Профиль (справа) */
.offcanvas-profile {
    right: -100%;
    top: 0;
    width: 300px;
    height: 100%;
}
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1090;
    display: none;
}

.offcanvas-backdrop.show {
    display: block;
}


.offcanvas-profile.show {
    right: 0;
}

/* Сетка для иконок */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.app-item {
    padding: 10px;
    background: #f1f1f1;
    border-radius: 10px;
    transition: background 0.3s;
}
.app-item a {
    text-decoration: none;
    color: #333;
}

.app-item .icon{
    color: #333;
}

html.dark-theme .app-item .icon{
    color: #fff;
}

html.dark-theme .app-item a {
    text-decoration: none;
    color: #fff;
}

html.dark-theme .app-item {
    background: #444;
}

.app-item:hover {
    background: #ddd;
}

html.dark-theme .app-item:hover {
    background: #666;
}

/* Кнопка закрытия (крестик) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: red;
}

/* Кнопка темы */
.theme-toggle {
   /* position: fixed; */
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle:hover {
   /* transform: rotate(20deg); */
}