/* fobweb overrides - styles Bootstrap doesn't cover */

body {
    font-size: 0.875rem;
    overflow: hidden;
}

/* ===== Sidebar + Layout (matches FOB web UI) ===== */
.fob-layout {
    display: flex;
    height: 100vh;
    height: 100dvh;
}
.fob-sidebar {
    width: 220px;
    min-width: 220px;
    height: 100vh;
    height: 100dvh;
}
.fob-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.fob-main {
    flex: 1;
    overflow: auto;
    padding: 1rem;
}

/* Shared nav link styles (sidebar + offcanvas) */
.fob-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
}
.fob-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.fob-nav .nav-link.active {
    background-color: var(--bs-primary);
}
.fob-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}
.fob-sidebar-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fob-sidebar-link:hover {
    color: #fff;
}

/* Mobile/tablet offcanvas sidebar */
#fobOffcanvas {
    width: 260px;
    max-width: 80vw;
}

/* Discord login button */
.discord-login-btn {
    background-color: #5865F2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    text-decoration: none;
}
.discord-login-btn:hover {
    background-color: #4752C4;
    color: white;
}
.discord-login-btn:active {
    background-color: #404EED;
}

/* Win rate color coding */
.win-rate-high { color: #4caf50; }
.win-rate-mid { color: #ff9800; }
.win-rate-low { color: #f44336; }

/* Resistance color coding */
.resist-weak { color: #4caf50; }
.resist-moderate { color: #ff9800; }
.resist-strong { color: #f44336; }
.resist-immune { color: #9e9e9e; }

/* Confidence color coding */
.confidence-high { color: #4caf50; }
.confidence-medium { color: #ff9800; }
.confidence-low { color: #f44336; }

/* Raid badge */
.bg-purple { background-color: #7b1fa2 !important; }

/* Sort active column header */
.sort-active { color: #0d6efd !important; }

/* Chart container */
.chart-container {
    max-width: 600px;
    margin: 16px auto;
}

/* Help icon tooltip */
.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #495057;
    color: #999;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    cursor: help;
    margin-left: 4px;
    position: relative;
    vertical-align: middle;
}
.help-icon:hover { color: #0d6efd; background-color: #6c757d; }
.help-icon .help-tooltip {
    display: none;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1d21;
    border: 1px solid #495057;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: 280px;
    z-index: 100;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.help-icon:hover .help-tooltip { display: block; }

/* Estimated stats card */
.estimated-card {
    background-color: #1a2332;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
.estimated-card h3 {
    margin-top: 0;
    color: #2196f3;
    font-size: 1rem;
    border-bottom: 1px solid #495057;
    padding-bottom: 8px;
}
.est-value {
    font-size: 1.25rem;
    font-weight: bold;
}
.est-range {
    font-size: 0.75rem;
    color: #6c757d;
}
.interpretation {
    font-style: italic;
    color: #6c757d;
    font-size: 0.8125rem;
    margin-top: 8px;
}

/* Info tags */
.info-tag {
    background-color: #495057;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #dee2e6;
}

/* ===== Pending Changes Diff ===== */
.diff-old { background-color: rgba(220, 53, 69, 0.15) !important; }
.diff-new { background-color: rgba(25, 135, 84, 0.15) !important; }
.diff-insert { background-color: rgba(25, 135, 84, 0.10) !important; }
.diff-panel-current { border-color: rgba(220, 53, 69, 0.4) !important; }
.diff-panel-proposed { border-color: rgba(25, 135, 84, 0.4) !important; }
.diff-panel-current .card-header { border-bottom-color: rgba(220, 53, 69, 0.3) !important; }
.diff-panel-proposed .card-header { border-bottom-color: rgba(25, 135, 84, 0.3) !important; }
.diff-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Correlation items */
.correlation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
}
