/* DayZ RPT Analyzer – Tool-spezifische Styles */

.gradient-text {
    background: linear-gradient(90deg, #E22345 0%, #ff6b8b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rpt-card {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    transition: border-color 0.2s ease;
}
.rpt-card:hover { border-color: rgba(226, 35, 69, 0.3); }

.rpt-section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.rpt-section-heading::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: linear-gradient(90deg, #E22345 0%, #ff6b8b 100%);
    border-radius: 3px;
}

/* Pills */
.pill {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.pill-critical { background-color: rgba(226, 35, 69, 0.18); color: #ff768e; }
.pill-error    { background-color: rgba(255, 100, 50, 0.18); color: #ff9573; }
.pill-warning  { background-color: rgba(255, 149, 0, 0.18); color: #ffb340; }
.pill-info     { background-color: rgba(10, 132, 255, 0.18); color: #5eb1ff; }
.pill-success  { background-color: rgba(48, 209, 88, 0.18); color: #7de89e; }
.pill-neutral  { background-color: rgba(255, 255, 255, 0.06); color: #cbd5e0; }

/* Drop-Zonen */
.rpt-drop {
    background: #0D1117;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.rpt-drop:hover { border-color: rgba(226, 35, 69, 0.5); background: #11161e; }
.rpt-drop.is-active { border-color: #E22345; background: rgba(226, 35, 69, 0.06); }
.rpt-drop.has-file  { border-style: solid; border-color: rgba(48, 209, 88, 0.4); }

/* Health-Bar */
.health-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}
.health-good     { border-color: #30d158; background: rgba(48, 209, 88, 0.06); }
.health-ok       { border-color: #5eb1ff; background: rgba(10, 132, 255, 0.06); }
.health-warn     { border-color: #ffb340; background: rgba(255, 149, 0, 0.06); }
.health-bad      { border-color: #ff7a45; background: rgba(255, 122, 69, 0.06); }
.health-critical { border-color: #E22345; background: rgba(226, 35, 69, 0.08); }

/* Pattern-Card */
.pattern-card {
    background: #0D1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    padding: 1rem;
    transition: border-color 0.15s ease;
}
.pattern-card:hover { border-color: rgba(226, 35, 69, 0.3); }
.pattern-card[data-severity="critical"] { border-left: 3px solid #E22345; }
.pattern-card[data-severity="error"]    { border-left: 3px solid #ff7a45; }
.pattern-card[data-severity="warning"]  { border-left: 3px solid #ffb340; }
.pattern-card[data-severity="info"]     { border-left: 3px solid #5eb1ff; }

.pattern-detail {
    background: #161b22;
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    margin: 0.25rem 0;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.78rem;
    color: #cbd5e0;
    word-break: break-word;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.pattern-detail .count {
    color: #ff768e;
    font-weight: 600;
    flex-shrink: 0;
}

/* Mini-Chart Bars */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 80px;
    padding-top: 0.25rem;
}
.bar-chart .bar {
    flex: 1;
    background: linear-gradient(to top, #E22345, #ff6b8b);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    position: relative;
}
.bar-chart .bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* Crash-Box */
.crash-block {
    background: #1a0d10;
    border: 1px solid rgba(226, 35, 69, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.8rem;
    color: #ffd1d8;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 320px;
}

/* Code-Tabelle */
.code-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.code-table th, .code-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.code-table th {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.code-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Tabs */
.rpt-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
    overflow-x: auto;
}
.rpt-tab {
    padding: 0.5rem 0.9rem;
    background: transparent;
    color: #94a3b8;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.rpt-tab:hover    { color: #ffffff; }
.rpt-tab.is-active {
    color: #ffffff;
    border-bottom-color: #E22345;
}

.rpt-tab-panel { display: none; }
.rpt-tab-panel.is-active { display: block; }

/* Filter-Bar */
.rpt-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem;
    background: #0D1117;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.rpt-filter-bar input[type="search"] {
    flex: 1;
    min-width: 240px;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
}
.rpt-filter-bar input[type="search"]:focus {
    outline: none;
    border-color: #E22345;
}
.rpt-chip {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e0;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s;
}
.rpt-chip:hover { border-color: rgba(226, 35, 69, 0.4); }
.rpt-chip.is-active {
    background: rgba(226, 35, 69, 0.18);
    border-color: #E22345;
    color: #ff9eaf;
}

/* Buttons */
.rpt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    background: #161b22;
    color: #fff;
    text-decoration: none;
}
.rpt-btn:hover { background: #1f262e; border-color: rgba(226, 35, 69, 0.4); }
.rpt-btn-primary {
    background: #E22345;
    color: #fff;
    font-weight: 600;
}
.rpt-btn-primary:hover { background: #ff2d54; border-color: transparent; }
.rpt-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
