/* ============================================
   CHANGELOG - 7TV MINIMAL STYLE
   ============================================ */

.changelog-page {
    min-height: 100vh;
    padding: 1.5rem 1rem;
    background: #18181b;
    position: relative;
    backdrop-filter: blur(10px); /* Blur-Effekt */
    -webkit-backdrop-filter: blur(10px); /* Safari-Unterstützung */
    

    /* Transparenz-Gradienten: horizontal + vertikal kombiniert */
    mask-image: 
        linear-gradient(to right,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,1) 10%,
            rgba(0,0,0,1) 90%,
            rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in; /* Safari */
}

.changelog-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   HAUPT-ÜBERSCHRIFT
   ============================================ */

.changelog-main-header {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.main-title {
    font-size: 1.75rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
    text-align: left;
}

/* ============================================
   CHANGELOG SECTION HEADER (unter Status)
   ============================================ */

.changelog-section-header {
    position: relative;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0;
}

/* ============================================
   HEADER - KOMPAKT (alter Header - versteckt)
   ============================================ */

.changelog-header {
    margin-bottom: 2.5rem;
}

.changelog-header-content {
    background: transparent;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.changelog-header-left {
    flex: 1;
}

.changelog-icon {
    display: none;
}

.changelog-title {
    font-size: 1.75rem;
    margin: 0 0 0.35rem;
    color: #efeff1;
    letter-spacing: -0.025em;
}

.changelog-subtitle {
    font-size: 0.9rem;
    color: #adadb8;
    margin: 0;
    font-weight: 400;
}

/* === LEGENDE === */
.changelog-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.legend-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-indicator {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.legend-indicator.new {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.legend-indicator.bugfix {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.legend-indicator.change {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.legend-indicator.info {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

.legend-text {
    font-size: 0.75rem;
    color: #d1d1d6;
    font-weight: 400;
}

/* === LEGENDE WRAPPER === */
.changelog-legend-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* === FEEDBACK BUTTON === */
.feedback-btn {
    width: fit-content;
    min-width: 120px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #adadb8;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: "Unbound", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    align-self: flex-end;
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #efeff1;
    transform: translateY(-1px);
}

.feedback-text {
    display: inline-block;
    font-family: "Unbound", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feedback-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #5865f2;
}

.feedback-discord i {
    font-size: 1rem;
}

/* Expanded State */
.feedback-btn.expanded {
    padding: 0.65rem 1.25rem;
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.3);
}

.feedback-btn.expanded .feedback-text {
    opacity: 0;
    transform: scale(0.8);
}

.feedback-btn.expanded .feedback-discord {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* === FILTER DROPDOWN (Hover-only) === */
.filter-dropdown {
    position: relative;
}

.filter-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #adadb8;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0;
    position: relative;
}

.version-card:hover .filter-toggle,
.filter-toggle.has-active-filter {
    opacity: 1;
}

.filter-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #efeff1;
}

/* Oranger Indikator wenn Filter aktiv */
.filter-toggle.has-active-filter::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #ff6b35;
    border-radius: 50%;
    border: 1.5px solid #1f1f23;
    box-shadow: 0 0 4px rgba(255, 107, 53, 0.6);
}

.filter-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 140px;
    background: #1f1f23;
    border: 1px solid #2d2d33;
    border-radius: 6px;
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-dropdown:hover .filter-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #adadb8;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: "Unbound", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #efeff1;
}

.filter-option.active {
    background: rgba(255, 255, 255, 0.12);
    color: #efeff1;
}

/* ============================================
   TIMELINE - NEU VON SCRATCH
   ============================================ */

.changelog-timeline {
    position: relative;
    padding-left: 45px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}

/* Einrückung für Unterversionen */
.timeline-item[data-version-type="minor"] {
    margin-left: 2.5rem;
}

.timeline-item[data-version-type="patch"] {
    margin-left: 5rem;
}

/* === DOTS === */
.timeline-dot {
    position: absolute;
    left: -37px;
    top: 20px;
    border-radius: 50%;
    z-index: 3;
}

.timeline-dot-inner {
    display: none;
}

/* Major Dot: Größer, Outline + Füllung, Glow */
.timeline-item[data-version-type="major"] .timeline-dot {
    width: 10px;
    height: 10px;
    left: -38px;
    background: rgba(191, 148, 255, 0.2);
    border: 2px solid #bf94ff;
    box-shadow: 0 0 8px rgba(191, 148, 255, 0.4);
}

/* Minor Dot: Mittel, nur Füllung */
.timeline-item[data-version-type="minor"] .timeline-dot {
    width: 8px;
    height: 8px;
    left: -37px;
    background: rgba(191, 148, 255, 0.6);
    border: none;
}

/* Patch Dot: Klein, subtil */
.timeline-item[data-version-type="patch"] .timeline-dot {
    width: 6px;
    height: 6px;
    left: -36px;
    background: rgba(191, 148, 255, 0.3);
    border: none;
}

/* === VERTIKALE LINIE === */
/* Durchgehende Hauptlinie */
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
}

/* === HORIZONTALE VERBINDUNGEN === */
/* Minor zur Hauptlinie */
.timeline-item[data-version-type="minor"]::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem - 37px);
    top: 24px;
    width: 2.5rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
}

/* Patch zur Hauptlinie */
.timeline-item[data-version-type="patch"]::before {
    content: '';
    position: absolute;
    left: calc(-5rem - 37px);
    top: 24px;
    width: 5rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.04);
}

/* ============================================
   VERSION CARD - KOMPAKT
   ============================================ */

.version-card {
    background: #1f1f23;
    border: 1px solid #2d2d33;
    border-radius: 6px;
    overflow: visible;
    transition: border-color 0.15s ease;
}

.version-card:hover {
    border-color: #3f3f46;
}

/* ============================================
   VERSION HEADER - KOMPAKT
   ============================================ */

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    cursor: default;
    overflow: visible;
}

.version-header.collapsible {
    cursor: pointer;
}

.version-header.collapsible:hover {
    background: rgba(255, 255, 255, 0.02);
}

.version-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.version-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.version-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.5rem 0.2rem;
    border-radius: 3px;
    line-height: 1;
    gap: 0.1rem;
}

.version-label {
    font-size: 0.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Alle Version-Badges: Outline, schwache Füllfarbe, Schrift in Farbe */
.version-badge.major,
.version-badge.minor,
.version-badge.patch {
    background: rgba(191, 148, 255, 0.1);
    color: #bf94ff;
    border: 1.5px solid #bf94ffab;
}

.version-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #adadb8;
}

.version-date i {
    font-size: 0.7rem;
}

.version-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #efeff1;
    margin: 0;
    letter-spacing: -0.015em;
}

/* ============================================
   CHANGES LIST - KOMPAKT
   ============================================ */

.version-changes {
    display: flex;
    flex-direction: column;
    max-height: 2000px;
    opacity: 1;
    padding: 0.5rem 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
}

.version-changes.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.change-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.2rem 1rem;
    border-radius: 6px;
    border: none;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

/* Container-Farben für verschiedene Types */
.change-item.new {
    background: rgba(74, 222, 128, 0.08);
}

.change-item.new:hover {
    background: rgba(74, 222, 128, 0.12);
    transform: translateX(2px);
}

.change-item.bugfix {
    background: rgba(248, 113, 113, 0.08);
}

.change-item.bugfix:hover {
    background: rgba(248, 113, 113, 0.12);
    transform: translateX(2px);
}

.change-item.change {
    background: rgba(96, 165, 250, 0.08);
}

.change-item.change:hover {
    background: rgba(96, 165, 250, 0.12);
    transform: translateX(2px);
}

.change-item.info {
    background: rgba(167, 139, 250, 0.08);
}

.change-item.info:hover {
    background: rgba(167, 139, 250, 0.12);
    transform: translateX(2px);
}

.change-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Change Type Colors */
.change-item.new .change-indicator {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.change-item.bugfix .change-indicator {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.change-item.change .change-indicator {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.change-item.info .change-indicator {
    background: rgba(167, 139, 250, 0.12);
    color: #a78bfa;
}

.change-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #efeff1;
    white-space: nowrap;
    flex-shrink: 0;
}

.change-description {
    color: #d1d1d6;
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

/* Collapse Indicator */
.collapse-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adadb8;
    transition: color 0.15s ease;
}

.version-header.collapsible:hover .collapse-indicator {
    color: #efeff1;
}

.collapse-indicator i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.collapse-indicator .fa-chevron-up {
    transform: rotate(180deg);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.changelog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #adadb8;
}

.changelog-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.changelog-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .changelog-page {
        padding: 1rem 0.75rem;
    }
    
    .changelog-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .legend-items {
        gap: 0.5rem;
    }
    
    .filter-toggle {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .filter-toggle.has-active-filter::after {
        width: 5px;
        height: 5px;
        top: 1px;
        right: 1px;
    }
    
    .filter-menu {
        min-width: 120px;
    }
    
    .filter-option {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .version-header-right {
        gap: 0.5rem;
    }
    
    .changelog-timeline {
        padding-left: 35px;
    }
    
    .changelog-timeline::before {
        left: 8px;
    }
    
    .timeline-item[data-version-type="major"] .timeline-dot {
        left: -27px;
        width: 9px;
        height: 9px;
    }
    
    .timeline-item[data-version-type="minor"] .timeline-dot {
        left: -26px;
        width: 7px;
        height: 7px;
    }
    
    .timeline-item[data-version-type="patch"] .timeline-dot {
        left: -25px;
        width: 5px;
        height: 5px;
    }
    
    .timeline-item[data-version-type="minor"] {
        margin-left: 1.5rem;
    }
    
    .timeline-item[data-version-type="patch"] {
        margin-left: 3rem;
    }
    
    .changelog-timeline {
        padding-left: 35px;
    }
    
    .changelog-timeline::before {
        left: 6px;
    }
    
    .timeline-item[data-version-type="major"] .timeline-dot {
        left: -29px;
        width: 8px;
        height: 8px;
    }
    
    .timeline-item[data-version-type="minor"] .timeline-dot {
        left: -28px;
        width: 6px;
        height: 6px;
    }
    
    .timeline-item[data-version-type="patch"] .timeline-dot {
        left: -27px;
        width: 5px;
        height: 5px;
    }
    
    .timeline-item[data-version-type="minor"]::before {
        left: calc(-1.5rem - 28px);
        width: 1.5rem;
    }
    
    .timeline-item[data-version-type="patch"]::before {
        left: calc(-3rem - 28px);
        width: 3rem;
    }
    
    .version-header {
        padding: 0.75rem 0.85rem;
    }
    
    .change-item {
        padding: 0.65rem 0.85rem;
        margin: 0.4rem 0.85rem;
        gap: 0.4rem;
    }
    
    .change-tag {
        font-size: 0.65rem;
        padding: 0.12rem 0.4rem;
    }
    
    .change-description {
        font-size: 0.8rem;
    }
}

/* ============================================
   SERVICE STATUS PANEL - 7TV STYLE
   ============================================ */

.service-status-panel {
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.service-status-panel:hover {
    border-color: rgba(160, 127, 255, 0.2);
    background: rgba(20, 20, 25, 0.5);
}

.status-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.status-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.status-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(160, 127, 255, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.service-status-panel:hover .status-icon {
    background: rgba(160, 127, 255, 0.15);
    transform: scale(1.05);
}

.status-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.updates-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.updates-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.x-logo {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.status-info {
    flex: 1;
}

.status-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
}

.status-indicator-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-indicator-main.operational {
    color: #10b981;
}

.status-indicator-main.degraded {
    color: #f59e0b;
}

.status-indicator-main.outage {
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor, 0 0 16px rgba(16, 185, 129, 0.3);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.status-panel-body {
    padding: 1.25rem;
}

/* ============================================
   UPTIME DIAGRAM - 7TV STYLE
   ============================================ */

.uptime-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.uptime-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
}

.uptime-percentage {
    background-color: rgba(74, 222, 128, 0.043);
    display: flex
;
    padding: 0.5vh;
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
}

.uptime-title-stats {
    padding: 0.5vh;
    border-radius: 8px;
    background-color: rgba(189, 189, 189, 0.043);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 0%;
}


.percentage-value {
    padding: 0.3rem;
    font-size: 2rem;
    /* font-weight: 700; */
    color: #10b981;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.percentage-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uptime-title-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.uptime-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.uptime-title i {
    color: #10b981;
    font-size: 1.1rem;
}

.uptime-stats-inline {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.uptime-stat-inline {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.uptime-stat-inline .stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uptime-stat-inline .stat-value {
    font-size: 0.95rem;
    color: #10b981;
}

.uptime-diagram {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uptime-bars {
    display: grid;
    grid-template-columns: repeat(90, 1fr);
    gap: 4px;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1rem 0.75rem;
}

.uptime-bar {
    height: 48px;
    border-radius: 3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.uptime-bar:hover {
    transform: translateY(-3px) scaleY(1.08);
    filter: brightness(1.2);
    z-index: 10;
}

.uptime-bar::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    max-width: 200px;
    white-space: normal;
    text-align: center;
}

.uptime-bar:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* Tooltips für Balken am linken Rand */
.uptime-bar:nth-child(-n+5)::before {
    left: 0;
    transform: translateX(0) translateY(-8px);
}

.uptime-bar:nth-child(-n+5):hover::before {
    transform: translateX(0) translateY(-12px);
}

/* Tooltips für Balken am rechten Rand */
.uptime-bar:nth-last-child(-n+5)::before {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-8px);
}

.uptime-bar:nth-last-child(-n+5):hover::before {
    transform: translateX(0) translateY(-12px);
}

/* Uptime Bar Status Colors - Verbessert */
.uptime-bar[data-status="operational"] {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.2);
}

.uptime-bar[data-status="operational"]:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border-color: #10b981;
}

.uptime-bar[data-status="degraded"] {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.2);
}

.uptime-bar[data-status="degraded"]:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border-color: #f59e0b;
}

.uptime-bar[data-status="outage"] {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.2);
    animation: pulse-red 2s ease-in-out infinite;
}

.uptime-bar[data-status="outage"]:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
}

.uptime-bar[data-status="no-data"] {
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    box-shadow: none;
    border-color: rgba(75, 85, 99, 0.3);
    opacity: 0.5;
    cursor: default;
}

.uptime-bar[data-status="no-data"]:hover {
    transform: none;
    filter: none;
    box-shadow: none;
    opacity: 0.6;
}

.uptime-bar[data-status="no-data"]::before {
    content: attr(title);
    background: rgba(75, 85, 99, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Heutiger Tag - Hervorhebung (NUR Border, KEINE Farb-Überschreibung!) */
.uptime-bar-today {
    position: relative;
    border-width: 2px !important;
    border-style: solid !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.uptime-bar-today:hover {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

/* Heute + Operational: Grün mit weißer Border */
.uptime-bar-today[data-status="operational"] {
    border-color: rgba(16, 185, 129, 0.6) !important;
}

.uptime-bar-today[data-status="operational"]:hover {
    border-color: #10b981 !important;
}

/* Heute + Degraded: Gelb mit weißer Border */
.uptime-bar-today[data-status="degraded"] {
    border-color: rgba(245, 158, 11, 0.6) !important;
}

.uptime-bar-today[data-status="degraded"]:hover {
    border-color: #f59e0b !important;
}

/* Heute + Outage: Rot mit weißer Border */
.uptime-bar-today[data-status="outage"] {
    border-color: rgba(239, 68, 68, 0.6) !important;
}

.uptime-bar-today[data-status="outage"]:hover {
    border-color: #ef4444 !important;
}

@keyframes pulse-today {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) scale(1.3);
        opacity: 0.7;
    }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.uptime-legend-bar {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.uptime-legend-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.uptime-legend-text::before {
    content: '←';
    color: rgba(255, 255, 255, 0.3);
}

.uptime-legend-text:last-child::before {
    content: '→';
}

.uptime-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.uptime-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 1rem 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.01) 100%);
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.uptime-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.uptime-stat:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.uptime-stat:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    color: #10b981;
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* Responsive - 7TV Style */
@media (max-width: 768px) {
    .status-panel-header {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .status-main {
        flex: unset;
    }
    
    .status-panel-body {
        padding: 1rem;
    }
    
    .status-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .status-title {
        font-size: 0.9rem;
    }
    
    .updates-button {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }
    
    .uptime-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .uptime-percentage {
        align-items: flex-start;
    }
    
    .percentage-value {
        font-size: 2rem;
    }
    
    .percentage-label {
        font-size: 0.7rem;
    }
    
    .uptime-title-stats {
        width: 100%;
    }
    
    .uptime-title {
        font-size: 0.85rem;
    }
    
    .uptime-stats-inline {
        gap: 1rem;
    }
    
    .uptime-stat-inline .stat-value {
        font-size: 0.85rem;
    }
    
    .uptime-stat-inline .stat-label {
        font-size: 0.65rem;
    }
    
    .uptime-bars {
        gap: 2px;
        padding: 0.75rem 0.5rem;
    }
    
    .uptime-bar {
        height: 36px;
    }
    
    .uptime-legend-bar {
        padding: 0.4rem 0.75rem;
    }
    
    .uptime-legend-text {
        font-size: 0.7rem;
    }
}
