/* ModBot Portal Styles - Discord-inspired dark theme */

:root {
    --discord-primary: #5865F2;
    --discord-green: #57F287;
    --discord-yellow: #FEE75C;
    --discord-red: #ED4245;
    --discord-pink: #EB459E;
    --discord-dark: #23272A;
    --discord-darker: #202225;
    --discord-surface: #2F3136;
    --discord-background: #36393F;
    --discord-text: #FFFFFF;
    --discord-text-muted: #B9BBBE;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--discord-background) !important;
    color: var(--discord-text);
    min-height: 100vh;
}

/* MudBlazor Dark Theme Overrides */
.mud-theme-dark {
    --mud-palette-background: var(--discord-background);
    --mud-palette-surface: var(--discord-surface);
    --mud-palette-drawer-background: var(--discord-surface);
    --mud-palette-appbar-background: var(--discord-dark);
}

.mud-layout {
    background-color: var(--discord-background) !important;
}

.mud-main-content {
    background-color: var(--discord-background) !important;
}

.mud-drawer {
    background-color: var(--discord-surface) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mud-appbar {
    background-color: var(--discord-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mud-nav-link {
    color: var(--discord-text-muted) !important;
    transition: all 0.2s ease;
}

.mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--discord-text) !important;
}

.mud-nav-link.active {
    background-color: rgba(88, 101, 242, 0.2) !important;
    color: var(--discord-text) !important;
}

.mud-paper {
    background-color: var(--discord-surface) !important;
    border-radius: 8px;
}

.mud-card {
    background-color: var(--discord-surface) !important;
    border-radius: 8px;
}

/* Feature card styles */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--discord-surface) !important;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-card.enabled {
    border-left: 4px solid var(--discord-green);
}

.feature-card.disabled {
    border-left: 4px solid var(--discord-text-muted);
    opacity: 0.8;
}

.feature-card.unavailable {
    border-left: 4px solid var(--discord-red);
    opacity: 0.6;
}

/* KPI tiles */
.kpi-tile {
    background: linear-gradient(135deg, var(--discord-surface) 0%, var(--discord-darker) 100%);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--discord-primary);
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--discord-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Server card styles */
.server-card {
    background-color: var(--discord-surface);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.server-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.server-card.selected {
    border: 2px solid var(--discord-primary);
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--discord-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Status indicators */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-dot.ok {
    background-color: var(--discord-green);
}

.status-dot.warn {
    background-color: var(--discord-yellow);
}

.status-dot.error {
    background-color: var(--discord-red);
}

/* Wizard steps */
.wizard-step {
    display: flex;
    align-items: center;
    padding: 16px;
    border-left: 3px solid transparent;
}

.wizard-step.active {
    background-color: rgba(88, 101, 242, 0.1);
    border-left-color: var(--discord-primary);
}

.wizard-step.completed {
    border-left-color: var(--discord-green);
}

.wizard-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--discord-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-weight: 600;
}

.wizard-step.completed .wizard-step-number {
    background-color: var(--discord-green);
}

.wizard-step.active .wizard-step-number {
    background-color: var(--discord-primary);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .kpi-tile {
        padding: 16px;
    }
    
    .kpi-value {
        font-size: 1.75rem;
    }
}

/* Health check items */
.health-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.health-item.ok {
    background-color: rgba(87, 242, 135, 0.1);
}

.health-item.warn {
    background-color: rgba(254, 231, 92, 0.1);
}

.health-item.fail {
    background-color: rgba(237, 66, 69, 0.1);
}

#blazor-error-ui {
    background: var(--discord-red);
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 16px;
    position: fixed;
    right: 0;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 8px;
}

/* Plan selection cards */
.plan-card {
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.plan-card.selected-basic {
    border-color: var(--discord-primary);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
}

.plan-card.selected-pro {
    border-color: #FEE75C;
    background: linear-gradient(135deg, rgba(254, 231, 92, 0.1) 0%, transparent 100%);
}

/* Plan badge */
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}
