/* Серверы в сайдбаре: бейдж, возраст, статус */

.servers__server.server {
    position: relative;
    overflow: visible;
    height: auto;
    min-height: 80px;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 16px 10px;
    box-sizing: border-box;
}

.servers__server.server--has-badge {
    padding-top: 18px;
}

.servers__server .server__container {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.servers__server .server__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    min-height: 0;
}

.servers__server .server__title {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    line-height: 1.3;
    white-space: normal;
    text-align: left;
}

.server__status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server__status-dot--on {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
    animation: server-pulse-dot 2s ease-in-out infinite;
}

.server__status-dot--off {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

@keyframes server-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 12px rgba(74, 222, 128, 0.8); }
}

.server__badge-new {
    position: absolute;
    top: -9px;
    left: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.3;
    z-index: 6;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
    animation: server-badge-pulse 2.5s ease-in-out infinite;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes server-badge-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 2px 18px rgba(239, 68, 68, 0.6); }
}

.server__age {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.32);
    border: none;
}

.server__age-icon {
    width: 14px;
    height: 14px;
    color: var(--color-main, #ff9d00);
    opacity: 0.9;
    flex-shrink: 0;
}

.server__age-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-da, #B0B3C0);
    line-height: 1.2;
}

.server__age-days {
    color: var(--color-main, #ff9d00);
    font-weight: 700;
    font-size: 14px;
}

.server__age--upcoming {
    background: rgba(0, 0, 0, 0.32);
}

.server__age--upcoming .server__age-icon,
.server__age--upcoming .server__age-days {
    color: #4ade80;
}

.servers__server .server__online {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
    line-height: 1.2;
}

.servers__server .server__progress {
    width: 100%;
    height: 4px;
    margin: 0;
    flex-shrink: 0;
}

.servers__list {
    display: flex;
    flex-direction: column;
    gap: var(--margin, 10px);
}

.servers__list .servers__server {
    margin-bottom: 0;
}
