*, *:after, *:before {
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   transition: .5s ease-in-out;
   /* добавим плавность переходов для всех элементов страницы*/
}

ul {
   list-style: none;
}
a {
   text-decoration: none;
   outline: none;
}
img {
   display: block;
   width: 100%;
}
h1, h2, h3, h4, h5, h6 {
   font-family: 'Playfair Display';
   font-weight: normal;
   letter-spacing: 1px;
}
h1 {
    display: block;
    font-size: 2em;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h2 {
    display: block;
    font-size: 1.5em;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h3 {
    display: block;
    font-size: 1.17em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h4 {
    display: block;
    font-size: 1em;
    margin-top: 1.33em;
    margin-bottom: 1.33em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}

h5 {
    display: block;
    font-size: 0.83em;
    margin-top: 1.67em;
    margin-bottom: 1.67em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
sup {
vertical-align: super;
font-size: smaller;
}

body {
   font-family: 'Open Sans', arial, sans-serif;
   font-size: 14px;
   line-height: 1;
   color: #373737;
   background-size:100%;
}

/* добавим очистку потока для всех контейнеров, внутри которых задано обтекание дочерних элементов */
header:after, .container:after, footer:after, .widget-posts-list li:after, #subscribe:after {
   content: "";
   display: table;
   clear: both;
}
/* стилевой класс, который управляет шириной контейнера сетки*/
.container {
   margin: 0 auto;
   width: 100%;
   max-width: 1100px;
}

.headers {
  border-radius: 30px;
}

header {
   width: 100%;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   border: 1px solid #F8B763;
   box-shadow: 1px 1px 0 0 #F8B763;
   padding: 15px 0;
   margin-bottom: 30px;
   border-radius: 30px;
   position: relative;
}
/* логотип */
.logo {
   display: block;
   float: left;
   font-size: 24px;
    font-weight:bold;
}
.logo span {
   color: white;
   display: inline-block;
   width: 30px;
   height: 30px;
   line-height: 30px;
   border-radius: 50%;
   margin: 5px 0;
   text-align: center;
   text-shadow: 2px 2px 1px rgba(0, 0, 0, .4);
}
.logo span:nth-child(odd) {
   background: #0000FF;
}
.logo span:nth-child(even) {
   background: #FF0000;
}
/* меню */
.menu
{
display: block;
float: right;
 text-align: center;
 
      position: absolute;
      overflow: hidden;
      width: auto; /* Ширина слоя */
      top: 15px;
      right: 0;
      left: 50%;
}
.menu a {
  font-size: 22px;
 color:#b5bdd4;
 font-weight: bold; 
}

/****************/
.dev-offline {
    color:#FF0000;
    font-size: 10px;
}
.dev-online {
    color:#00FF00;
    font-size: 10px;
}

/* ===== СТИЛИ ДЛЯ ДАШБОРДА УСТРОЙСТВ ===== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.device-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.device-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.device-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.device-id {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 500;
}

.status-online {
    color: #00ff88;
}

.status-offline {
    color: #ff4444;
}

.status-updating {
    color: #ffaa00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Сетка виджетов */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 2rem;
}

.widget {
    background: linear-gradient(145deg, #3a4568, #2d3654);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #4a5678;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.widget-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00c6ff;
    text-align: center;
    margin: 1rem 0;
}

.widget-unit {
    font-size: 1rem;
    color: #b8c2e0;
    margin-left: 5px;
}

/* Контролы устройств */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-label {
    display: block;
    color: #b8c2e0;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Переключатели */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a5678;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Слайдеры */
.slider-control {
    width: 100%;
    margin: 10px 0;
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #4a5678;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00c6ff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00c6ff;
    cursor: pointer;
    border: none;
}

.slider-value {
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 176, 155, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.4);
}

/* Графики и диаграммы */
.chart-container {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 1rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c2e0;
}

/* Состояния устройств */
.state-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin: 10px 0;
}

.state-on {
    border-left: 4px solid #00ff88;
}

.state-off {
    border-left: 4px solid #ff4444;
}

/* ===== СТИЛИ ДЛЯ БОКОВОЙ ПАНЕЛИ УСТРОЙСТВ ===== */
.sidebar-widget {
    background: linear-gradient(145deg, #3a4568, #2d3654);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #4a5678;
    margin-bottom: 25px;
    float: right; /* добавляем если нужно */
   margin-left: 25px; /* добавляем отступ слева */
   margin-right: 0; /* убираем отступ справа */
}

.widget-header {
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a5678;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-selector {
    margin-bottom: 20px;
}

.device-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #4a5678;
    border-radius: 12px;
    background: #2a324a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.device-dropdown:focus {
    outline: none;
    border-color: #00c6ff;
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.device-list {
    max-height: 500px;
    overflow-y: auto;
}

.device-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.device-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.device-item.active {
    border-color: #00c6ff;
    background: rgba(0, 198, 255, 0.1);
}

.device-item.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #00c6ff;
    border-radius: 2px;
}

.device-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.device-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.device-info {
    flex: 1;
    min-width: 0;
}

.device-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-data {
    color: #00c6ff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.device-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-devices {
    text-align: center;
    padding: 2rem 1rem;
    color: #b8c2e0;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-text {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.add-device-btn, .add-device-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.add-device-btn:hover, .add-device-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

.widget-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #4a5678;
}

/* Мобильная версия боковой панели */
.widget-desktop {
    display: block;
}

.widget-mobile {
    display: none;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mobile-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mobile-toggle {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.toggle-icon {
    color: #ffffff;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.mobile-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.mobile-device-selector {
    display: none;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.mobile-device-selector.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-device-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #4a5678;
    border-radius: 10px;
    background: #2a324a;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
}

.current-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    border-left: 4px solid #00c6ff;
}

.current-device-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.current-device-details {
    flex: 1;
    min-width: 0;
}

.current-device-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-device-data {
    color: #00c6ff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.current-device-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-empty {
    text-align: center;
    padding: 20px 15px;
    color: #b8c2e0;
}

.mobile-empty-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.mobile-empty-text {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.mobile-add-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget, .device-item {
    animation: slideIn 0.5s ease-out;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #b8c2e0;
    padding-bottom: 500px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state .empty-text {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Уведомления */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 1rem 0;
    font-weight: 500;
    text-align: center;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
}

/* левый контейнер */
.posts-list {
   margin-bottom: 30px;
   width: 47%;
   float: left;
}
.posts-list2 {
   margin-bottom: 30px;
   width: 64%;
   float: left;
}
/* блок для статьи */
.post {
   margin-bottom: 35px;
}
.post-content p {
   line-height: 1.2;
   padding-bottom: 1em;
}
.post-image {
   margin-bottom: 30px;
}
.text-content{
     border-radius: 25px;
    line-height: 1.2;
  padding: 20px 15px;
   background: linear-gradient(329deg, #646569, #6887ef);
   font-size: 14px;
   margin-bottom: 30px;
   box-shadow: 3px 3px 1px rgba(0, 0, 0, .05); 
}
.category {
   margin-bottom: 15px;
}
.category a {
   color: #F8B763;
   text-transform: uppercase;
}
.post-title {
   margin-bottom: 12px;
   font-size: 26px;
}
/* блок с кнопкой "продолжить чтение" и кнопками социальных сетей */
.post-footer {
   border-top: 1px solid #EBEBE3;
   border-bottom: 1px solid #EBEBE3;
   position: relative;
   margin-top: 15px;
}
.more-link {
   position: relative;
   display: inline-block;
   font-size: 10px;
   text-transform: uppercase;
   color: white;
   line-height: 44px;
   padding: 0 22px;
   background: #3C3D41;
   letter-spacing: 0.1em;
   white-space: nowrap;
}
.more-link:after {
   content: '';
   display: block;
   position: absolute;
   width: 0;
   height: 0;
   top: 0;
   right: 0;
   border: solid transparent;
   border-width: 22px 18px;
   border-left-color: #3C3D41;
   transform: translateX(100%);
}

/* left контейнер */
aride {
   width: 20%;
   float: left;
}

/* правый контейнер */
aside {
   width: 33%;
   float: right; /* меняем на right */
}
/* блок для виджетов */
.widget {
   padding: 20px 15px;
   background: Honeydew;
   font-size: 13px;
   margin-bottom: 30px;
   box-shadow: 3px 3px 1px rgba(0, 0, 0, .05);
}
.left-widget {
   padding: 10px 10px;
   background:linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
   font-size: 14px;
   margin-bottom: 40px;
   border-radius: 30px;
   border: 1px solid #F8B763;
   box-shadow: 1px 1px 0 0 #F8B763;
}
.dev-title {
    content: ">";
   font-size: 16px;
   padding: 10px;
   margin-bottom: 20px;
   text-align: center;
   border-radius: 30px;
   border: 1px solid #F8B763;
   box-shadow: 1px 1px 0 0 #F8B763;
}
.dev-title option{
    color: #4020df;
}
.dev-option{
    border-radius: 30px;
    border: 1px solid #F8B763;
    box-shadow: 1px 1px 0 0 #F8B763;
}
.left-category-list li {
   border-bottom: 1px solid #EBEBE3;
   padding: 10px 0;
   color: #63e9e6;
   margin-right: 6px;
   font-style: normal;
}
.left-category-list a {
   color: Honeydew;
   font-weight:bold;
}

.left-add li img{
    width:20%;
    margin: 0 auto;
}
/* блок для виджетов */

.add-list {
   font-size: 14px;
   text-align: left;
   font-weight:bold;
}
.add-title {
   font-size: 14px;
   padding: 10px;
   margin-bottom: 20px;
   margin-left: 50px;
   text-align: left;
   border: 1px solid #F8B763;
   box-shadow: 1px 1px 0 0 #F8B763;
}
.add-result {
   font-size: 16px;
   padding: 10px;
   margin-bottom: 20px;
   margin-left: 50px;
   text-align: left;
   border: 1px solid #F8B763;
}
.add-res2 {
   font-size: 16px;
   padding: 10px;
   margin-bottom: 20px;
   margin-left: 50px;
   text-align: center;
   border: 1px solid red;
}
.widget-title {
   font-size: 18px;
   padding: 10px;
   margin-bottom: 20px;
   text-align: center;
   border: 1px solid #F8B763;
   box-shadow: 1px 1px 0 0 #F8B763;
}
.widget-category-list li {
   border-bottom: 1px solid #EBEBE3;
   padding: 10px 0;
   color: #c6c6c6;
   font-style: italic;
}
.widget-category-list li:last-child {
   border-bottom: none;
}
.widget-category-list li a {
   color: #626262;
   margin-right: 6px;
   font-style: normal;
}
.widget-category-list li a:before {
   content: "\f105";
   display: inline-block;
   font-family: 'FontAwesome';
   margin-right: 10px;
   color: #c6c6c6;
}
.widget-posts-list li {
   border-top: 1px solid #EBEBE3;
   padding: 15px 0;
}
.widget-posts-list li:nth-child(1) {
   border-top: none;
}
.post-image-small {
   width: 30%;
   float: left;
   margin-right: 15px;
}
.widget-post-title {
   float: left;
}

footer {
   padding: 15px 0;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   color: white;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
   border: 1px solid #F8B763;
   box-shadow: 1px 1px 0 0 #F8B763;
   border-radius: 30px;
}
.footer-col {
   width: 23.3333333333%;
   float: left;
}
.footer-col a {
   color: white;
}
.footer-col:last-child {
   text-align: center;
}
.social-bar-wrap {
   text-align: center;
}
.social-bar-wrap a {
   padding: 0 7px;
   font-size: 18px;
}


button {
    padding: 10px;
    font-size: 1.5rem;
    font-family: 'Lato';
    font-weight: 100;
    background: yellowgreen;
    color: white;
    border: none;
}
p.success,p.error {
    display: block;
    border-radius: 10px;
    float: right;
    position: absolute; 
    color: white;
    text-align: center;
    font-family: lato;
    background: yellowgreen;
    padding: 2px 10px;
    top: -2.5em;
    left: 0em;
}
p.error {
    text-align: center;
    background: orangered;
}

p.success-reg,p.error-reg {
    display: block;
    border-radius: 20px;
    float: right;
    position: absolute; 
    color: white;
    text-align: center;
    font-family: lato;
    background: yellowgreen;
    padding: 2px 10px;
    top: 25.0em;
    left: 45.0em;
}
p.error-reg {
    text-align: center;
    background: orangered;
}

p.successv,p.errorv {
    color: white;
    text-align: center;
    font-family: lato;
    background: yellowgreen;
    padding: 2px 10px;
    display: inline-block;
}
p.errorv {
    text-align: center;
    background: orangered;
}
   /* подсказка при наведении */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -5px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
} 

.avatar_id{
   display: block;
    border-radius: 30px;
    width: 90px;
    height: 90px;
    float: right;
    position: absolute; 
    top: 11.0em;
    left: 55em; 
}

.tabl_dev{
   width: 100%; /* Ширина таблицы */
    border-collapse: collapse; /* Убираем двойные линии между ячейками */
    border: 2px; /* Прячем рамку вокруг таблицы */ 
}
.tabl_dev td{
    padding: 3px; /* Поля вокруг содержимого таблицы */
   
    text-align: left; /* Выравнивание по левому краю */
    border-bottom: 1px solid #0066ff;  /* Параметры линии под строками */
}

.tabl_api{
   width: 100%; /* Ширина таблицы */
    border-collapse: collapse; /* Убираем двойные линии между ячейками */
    border: 2px; /* Прячем рамку вокруг таблицы */ 
    background-color: #DCDCDC;
    border-radius: 15px;
}
.tabl_api td{
    padding: 5px; /* Поля вокруг содержимого таблицы */
    color: #000000;
    text-align: left; /* Выравнивание по левому краю */
    border-bottom: 1px solid #0066ff;  /* Параметры линии под строками */
}

.tab_td1{
  text-align: left;  
}
.tab_td2{
  text-align: right;  
}
.text-gl{
  text-align: center; 
  color: Aquamarine;
}

/* Адаптивность */
@media (max-width: 768px) {
   
   body {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   } 
    
   header {
      padding: 10px 0;
   }

.avatar_id{
   display: inline-block;
    border-radius: 30px;
    width: 50px;
    height: 50px;
     float: none;

    top: 10em;
    left: 20em; 
}

   /* отменяем обтекание левой и правой колонок, устанавливаем им ширину 100%*/
   .posts-list, aride {
      width: 100%;
      float: none;
   }
   .posts-list2, aride {
      width: 100%;
      float: none;
      margin-top: 5.0em;
   }
   .post-content{
      width: 100%;
      float: none;
      margin-left: 10px;
   }
   .posts-list, aside {
      width: 100%;
      float: none;
   }
   .posts-list2, aside {
      width: 100%;
      float: none;
      margin-top: 1.0em;
   }
   .widget-post-title {
      font-size: 1.5em;
   }
   
  .name_u{
      right: 100%;
      left: 0%;
  }
   .u_date{
      color: #EF5A42;
  }

.menu
{
   display: inline-block; 
   top:5em;
   right: 0;
   left: 0;
}
.menu li{
   display: inline-block; 
    margin: 5px 30px;
}

.text-content{
    margin-top: 1.0em;
    margin-bottom: 1.0em;
      z-index: 1;
}  
 
.left-widget {
   background: #0000;
   margin-bottom: 0px;
   margin-left:11.0em;
   margin-top: -2.7em;
   border: 0px;
   box-shadow: 0px 0px 0 0;
   
}

.verh_blok{
      background: #0000;
   }

.add-list {
   font-size: 12px;
}
.add-title {
   font-size: 12px;
   padding: 1px;
   margin-bottom: 25px;
   margin-left: 2px;
}

/* Мобильная адаптация новых стилей */
.widget-desktop {
    display: none;
}

.widget-mobile {
    display: block;
}

.sidebar-widget {
    padding: 15px;
    border-radius: 15px;
}

.dashboard-container {
    padding: 10px;
}

.device-header {
    padding: 20px 15px;
}

.device-title {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.device-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.widgets-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.widget {
    padding: 20px;
}

.controls-grid {
    grid-template-columns: 1fr;
}

footer {
   display: block;
   z-index: 0;
}

}

@media (min-width: 769px) {
    .widget-desktop {
        display: block;
    }
    
    .widget-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
   /* отменяем обтекание для логотипа и выравниваем по центру*/
   .logo {
      float: none;
      margin: 0 auto 15px;
      display: table;
   }
   .logo span {
      margin: 1px 5px;
   }

   /* убираем верхнюю и нижнюю границы и выравниваем кнопку по центру */
   .post-footer {
      border-top: none;
      border-bottom: none;
      text-align: center;
   }
   /* отменяем позиционирование кнопок соцсетей */
   .post-social {
      position: static;
      text-align: center;
      transform: none;
      margin-top: 20px;
   }
   .widget-post-title {
      font-size: 1.2em;
   }
   .mobile-header{
        padding: 3px;
   }
   /* отменяем обтекание для столбцов подвала страницы */
  footer {
   padding: 10px 0;
   background: #3C3D41;
   color: white;
  padding-bottom: 0px;
  overflow: hidden;
  display: none;
} 
   .footer-col {
      float: none;
      margin-bottom: 15px;
      width: 100%;
      text-align: center;
   }
   .footer-col:last-child {
      text-align: center;
      margin-bottom: 0px;
   }

}



