/* ============================================================================
   Status Dashboard - Sleek KPI Cards & Progress Bars
   Matches the Mira Platform aesthetic with glassmorphism
   ============================================================================ */

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.sd {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.sd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.75) 0%, rgba(28, 32, 42, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sd-headerLeft {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.sd-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00c9a7 0%, #00a1bf 100%);
    border-radius: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sd-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.sd-subtitle {
    font-size: 0.82rem;
    color: rgba(160, 165, 176, 0.85);
    margin-top: 2px;
}

.sd-headerRight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sd-timestamp {
    font-size: 0.8rem;
    color: rgba(160, 165, 176, 0.7);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sd-autoToggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(160, 165, 176, 0.85);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sd-autoToggle:hover {
    border-color: rgba(0, 201, 167, 0.2);
    background: rgba(0, 201, 167, 0.06);
}

.sd-autoToggle input {
    accent-color: #00c9a7;
    margin: 0;
}

.sd-refreshBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.15) 0%, rgba(0, 161, 191, 0.1) 100%);
    color: #00c9a7;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sd-refreshBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.25) 0%, rgba(0, 161, 191, 0.18) 100%);
    border-color: rgba(0, 201, 167, 0.3);
    transform: translateY(-1px);
}

.sd-refreshBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sd-spin {
    animation: sd-spin 1s linear infinite;
}

@keyframes sd-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sd-error {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   KPI Cards Row
   -------------------------------------------------------------------------- */
.sd-kpiRow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sd-kpi {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.75) 0%, rgba(28, 32, 42, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}

.sd-kpi:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sd-kpiIcon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.sd-kpiIcon--blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.sd-kpiIcon--green {
    background: rgba(0, 201, 167, 0.15);
    color: #00c9a7;
}

.sd-kpiIcon--cyan {
    background: rgba(0, 161, 191, 0.15);
    color: #22d3ee;
}

.sd-kpiIcon--orange {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.sd-kpiBody {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sd-kpiValue {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.sd-kpiSmall {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(160, 165, 176, 0.7);
}

.sd-kpiLabel {
    font-size: 0.82rem;
    color: rgba(160, 165, 176, 0.85);
    white-space: nowrap;
}

.sd-kpiBadge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}

.sd-kpiBadge--green {
    background: rgba(0, 201, 167, 0.15);
    color: #5eead4;
}

.sd-kpiBadge--yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.sd-kpiBadge--red {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.sd-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.sd-sectionHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sd-sectionTitle {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.sd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sd-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(160, 165, 176, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.sd-chip:hover {
    border-color: rgba(0, 201, 167, 0.2);
    background: rgba(0, 201, 167, 0.08);
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Crawl Status Grid
   -------------------------------------------------------------------------- */
.sd-crawlGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.75rem;
}

.sd-crawlCard {
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.65) 0%, rgba(28, 32, 42, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sd-crawlCard:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.sd-crawlCard--pending {
    border-color: rgba(245, 158, 11, 0.2);
}

.sd-crawlCard--error {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(30, 35, 46, 0.9) 100%);
}

.sd-crawlHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.sd-crawlName {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-crawlPct {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.sd-crawlPct--ok {
    background: rgba(0, 201, 167, 0.15);
    color: #5eead4;
}

.sd-crawlPct--pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.sd-crawlPct--error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sd-crawlProducts {
    font-size: 0.78rem;
    color: rgba(160, 165, 176, 0.75);
    margin-bottom: 0.5rem;
}

.sd-progressTrack {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.sd-progressBar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.sd-progressBar--ok {
    background: linear-gradient(90deg, #00c9a7 0%, #00a1bf 100%);
}

.sd-progressBar--pending {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.sd-progressBar--error {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

/* --------------------------------------------------------------------------
   Activity Panels
   -------------------------------------------------------------------------- */
.sd-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.sd-panel {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.75) 0%, rgba(28, 32, 42, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.sd-panelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-panelTitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.sd-panelBadge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 201, 167, 0.12);
    color: #5eead4;
}

.sd-panelBody {
    flex: 1;
    padding: 0.5rem 0;
    max-height: 340px;
    overflow-y: auto;
}

.sd-panelBody::-webkit-scrollbar {
    width: 5px;
}

.sd-panelBody::-webkit-scrollbar-track {
    background: transparent;
}

.sd-panelBody::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.sd-empty {
    padding: 1.5rem;
    text-align: center;
    color: rgba(160, 165, 176, 0.6);
    font-size: 0.85rem;
}

/* Find Rows */
.sd-findRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s ease;
}

.sd-findRow:last-child {
    border-bottom: none;
}

.sd-findRow:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sd-findRow--seen {
    opacity: 0.55;
}

.sd-findMain {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.sd-findKeyword {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-findLink {
    font-size: 0.78rem;
    color: #00c9a7 !important;
    text-decoration: none !important;
}

.sd-findLink:hover {
    text-decoration: underline !important;
}

.sd-findMeta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sd-findPrice {
    font-size: 0.82rem;
    font-weight: 600;
    color: #00c9a7;
}

.sd-findDate {
    font-size: 0.75rem;
    color: rgba(160, 165, 176, 0.65);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sd-findSeen {
    font-size: 0.8rem;
    color: #5eead4;
}

/* Alert Rows */
.sd-alertRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sd-alertRow:last-child {
    border-bottom: none;
}

.sd-alertRow:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sd-alertKeyword {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-alertUser {
    font-size: 0.78rem;
    color: rgba(160, 165, 176, 0.65);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Activity Log Panel
   -------------------------------------------------------------------------- */
.sd-logPanel {
    margin-top: 0.5rem;
}

.sd-logBody {
    max-height: 500px;
}

.sd-logRow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    font-size: 0.82rem;
    transition: background 0.15s ease;
    min-height: 36px;
}

.sd-logRow:last-child {
    border-bottom: none;
}

.sd-logRow:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ── Icon column ── */
.sd-logIcon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    opacity: 0.85;
}

/* Type-specific icon backgrounds */
.sd-logRow--pageview .sd-logIcon  { background: rgba(100,149,237,0.12); color: #6495ed; stroke: #6495ed; }
.sd-logRow--click .sd-logIcon     { background: rgba(0,201,167,0.12);   color: #00c9a7; stroke: #00c9a7; }
.sd-logRow--vote .sd-logIcon      { background: rgba(255,193,7,0.12);   color: #ffc107; stroke: #ffc107; }
.sd-logRow--topdeals .sd-logIcon  { background: rgba(255,215,0,0.12);   color: #ffd700; stroke: #ffd700; }
.sd-logRow--skroutz .sd-logIcon   { background: rgba(255,106,0,0.12);   color: #ff6a00; stroke: #ff6a00; }
.sd-logRow--comment .sd-logIcon   { background: rgba(147,130,220,0.12); color: #9382dc; stroke: #9382dc; }
.sd-logRow--other .sd-logIcon     { background: rgba(160,165,176,0.08); color: #a0a5b0; stroke: #a0a5b0; }

/* ── Content column ── */
.sd-logContent {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    white-space: nowrap;
}

.sd-logLabel {
    color: rgba(200,210,225,0.65);
    font-weight: 500;
    flex-shrink: 0;
}

.sd-logUser {
    color: #6ea8fe;
    font-weight: 600;
    flex-shrink: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-logDeal {
    color: rgba(174, 227, 251, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

a.sd-logDeal:hover {
    color: #00c9a7;
    text-decoration: underline;
}

.sd-logDetail {
    color: rgba(160, 165, 176, 0.5);
    font-size: 0.78rem;
}

.sd-logVoteUp {
    color: #39d353;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sd-logVoteDown {
    color: #f85149;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Left accent stripe per type ── */
.sd-logRow--pageview  { border-left: 2px solid rgba(100,149,237,0.3); }
.sd-logRow--click     { border-left: 2px solid rgba(0,201,167,0.4); }
.sd-logRow--vote      { border-left: 2px solid rgba(255,193,7,0.3); }
.sd-logRow--topdeals  { border-left: 2px solid rgba(255,215,0,0.3); }
.sd-logRow--skroutz   { border-left: 2px solid rgba(255,106,0,0.3); }
.sd-logRow--comment   { border-left: 2px solid rgba(147,130,220,0.3); }
.sd-logRow--other     { border-left: 2px solid rgba(160,165,176,0.15); }

/* ── Meta column (IP + time) ── */
.sd-logMeta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sd-logClient {
    color: rgba(160, 165, 176, 0.45);
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sd-logTime {
    color: rgba(0, 201, 167, 0.7);
    font-size: 0.72rem;
    min-width: 50px;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Visitors Charts Row
   -------------------------------------------------------------------------- */
.sd-chartsRow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sd-chartSection {
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.75) 0%, rgba(28, 32, 42, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.sd-chartSection .sd-panelHeader {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-chartContainer {
    padding: 0.5rem 1rem 1rem 1rem;
    height: 220px;
}

.sd-chartContainer .rz-chart {
    height: 100%;
}

/* Radzen chart dark theme overrides */
.sd-chartContainer .rz-chart-tooltip {
    background: rgba(28, 32, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
}

.sd-chartContainer .rz-column-series rect {
    fill: url(#sd-gradient) !important;
}

.sd-chartContainer .rz-axis-title,
.sd-chartContainer .rz-tick-text {
    fill: rgba(160, 165, 176, 0.75) !important;
    font-size: 0.78rem !important;
}

.sd-chartContainer .rz-series-data-label {
    fill: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .sd-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sd-headerRight {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sd-kpiRow {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sd-crawlGrid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sd-panels {
        grid-template-columns: 1fr;
    }
    
    .sd-chartsRow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .sd-kpiRow {
        grid-template-columns: 1fr;
    }
    
    .sd-crawlGrid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Clickable Crawl Cards
   -------------------------------------------------------------------------- */
.sd-crawlCard--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sd-crawlCard--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 201, 167, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 201, 167, 0.3);
}

.sd-crawlCard--clickable:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Log Modal
   -------------------------------------------------------------------------- */
.sd-modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.sd-modal {
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: linear-gradient(135deg, rgba(35, 40, 50, 0.98) 0%, rgba(28, 32, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 201, 167, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sd-modalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.sd-modalTitle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8ecef;
}

.sd-modalTitle svg {
    color: #00c9a7;
}

.sd-modalClose {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #a0aab4;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sd-modalClose:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sd-modalBody {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    min-height: 200px;
}

.sd-logLoading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: #a0aab4;
}

.sd-logError {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #fca5a5;
}

.sd-logContent {
    margin: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #c8d4dc;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}
