* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.report-btn {
    width: 219px;
    padding: 10px 20px;
    background-color: #EBEBEB;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-btn-icon {
    display: none;
}

.report-btn:hover {
    background-color: #DEDEDE;
}

/* Статус баннер */
.status-banner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: white;
    border: 3px solid #24C19A;
    border-radius: 12px;
    margin-bottom: 48px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.status-banner.warning {
    border-color: #FFB800;
}

.status-banner.error {
    border-color: #FF6B6B;
}

.status-banner.maintenance {
    border-color: #999999;
}

.status-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #E8F8F5;
}

.status-banner.warning .status-banner-header {
    background: #FFF9E6;
}

.status-banner.error .status-banner-header {
    background: #FFE8E8;
}

.status-banner.maintenance .status-banner-header {
    background: #F0F0F0;
}

.status-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    font-size: 0;
}

.status-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url('accept%20icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.status-banner.warning .status-icon::before {
    background-image: url('warning%20icon.png');
}

.status-banner.error .status-icon::before {
    background-image: url('error%20icon.png');
}

.status-banner.maintenance .status-icon::before {
    content: '';
    background-image: url('setting%20icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.status-banner-content {
    background: white;
    padding: 24px;
}

.status-description {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.status-issues {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.status-issue-item {
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid #FFB800;
}

.status-banner.error .status-issue-item {
    border-left-color: #FF6B6B;
}

.status-banner.warning .status-issue-item {
    border-left-color: #FFB800;
}

.status-issue-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 184, 0, 0.15);
    border-radius: 6px;
}

.status-banner.error .status-issue-name {
    background: rgba(255, 107, 107, 0.15);
}

.status-issue-message {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* Секция серверов */
.servers-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    border: 3px solid #e0e0e0;
    margin-bottom: 24px;
}

.servers-section:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 -24px 16px -24px;
    padding: 0 24px 16px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 -24px;
    padding: 0 24px;
}

.server-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    position: relative;
}

.server-item:first-child {
    padding-top: 0;
}

.server-item:last-child {
    padding-bottom: 0;
}

.server-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -24px;
    right: -24px;
    height: 1px;
    background-color: #f5f5f5;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.server-status-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    font-size: 0;
}

.server-status-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.server-status-icon[data-status="online"]::before {
    background-image: url('accept%20icon.png');
}

.server-status-icon[data-status="warning"]::before {
    background-image: url('warning%20icon.png');
}

.server-status-icon[data-status="offline"]::before,
.server-status-icon[data-status="error"]::before {
    background-image: url('error%20icon.png');
}

.server-status-icon[data-status="loading"] {
    font-size: 16px;
}

.server-status-icon[data-status="loading"]::before {
    content: '⟳';
    background-image: none !important;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    animation: spin 1s linear infinite;
}

.server-status-icon[data-status="maintenance"]::before {
    content: '';
    background-image: url('setting%20icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.server-name {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    flex: 1;
}

.server-uptime-percent {
    font-size: 18px;
    font-weight: 500;
    color: #999;
    margin-left: auto;
}

/* Аптайм бар */
.server-uptime {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: visible;
}

.uptime-bar {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 2px;
    align-items: center;
}

.uptime-segment {
    height: 20px;
    background-color: #24C19A;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    width: 7px;
    flex-shrink: 0;
}

.uptime-segment:hover {
    height: 27px;
    background-color: #1FA382;
    z-index: 10;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

.uptime-segment.online {
    background-color: #24C19A;
}

.uptime-segment.online:hover {
    background-color: #1FA382;
    height: 27px;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

.uptime-segment.warning {
    background-color: #ffc107;
}

.uptime-segment.warning:hover {
    background-color: #e6ac00;
    height: 27px;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

.uptime-segment.error {
    background-color: #f28b82;
}

.uptime-segment.error:hover {
    background-color: #d96860;
    height: 27px;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

.uptime-segment.offline {
    background-color: #f28b82;
}

.uptime-segment.offline:hover {
    background-color: #d96860;
    height: 27px;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

.uptime-segment.loading {
    background-color: #e0e0e0;
}

.uptime-segment.loading:hover {
    background-color: #c8c8c8;
    height: 27px;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

.uptime-segment.maintenance {
    background-color: #B1B1B1;
}

.uptime-segment.maintenance:hover {
    background-color: #9A9A9A;
    height: 27px;
    margin-top: -3.5px;
    margin-bottom: -3.5px;
}

/* Тултип */
.uptime-tooltip {
    position: fixed;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-align: left !important;
}

.uptime-tooltip.visible {
    opacity: 1;
}

.uptime-tooltip::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.tooltip-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.tooltip-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.tooltip-status-text {
    text-align: left !important;
    flex: 1;
    display: block;
    width: 100%;
}

.tooltip-status-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    font-size: 0;
}

.tooltip-status-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tooltip-status-icon.online::before {
    background-image: url('accept%20icon.png');
}

.tooltip-status-icon.warning::before {
    background-image: url('warning%20icon.png');
}

.tooltip-status-icon.offline::before,
.tooltip-status-icon.error::before {
    background-image: url('error%20icon.png');
}

.tooltip-status-icon.maintenance::before {
    background-image: url('setting%20icon.png');
}

.server-uptime {
    position: relative;
}

/* Адаптивность */
@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }

    .header {
        margin-bottom: 24px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-icon {
        height: 36px;
        width: auto;
    }

    .report-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 600;
    }
    
    .report-btn-text {
        display: none;
    }
    
    .report-btn-icon {
        display: block;
    }

    .status-banner {
        padding: 0;
        margin-bottom: 24px;
    }

    .status-banner-header {
        padding: 16px;
    }

    .status-banner-content {
        padding: 16px;
    }

    .status-title {
        font-size: 18px;
    }

    .status-description {
        font-size: 14px;
    }

    .servers-section {
        padding: 24px;
    }
}
