/* K2 AI Coder Gateway — Admin Dashboard Styles */

/* Blazor Server reconnect modal — pairs with markup in App.razor.
   Blazor adds .components-reconnect-show / -failed / -rejected to the root
   when the SignalR circuit state changes. Hidden otherwise. */
#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 32, 68, 0.55);
    z-index: 10500;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#components-reconnect-modal > div {
    display: none;
    background: #ffffff;
    padding: 1.4rem 1.8rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    text-align: center;
    line-height: 1.4;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-current,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .nav-link {
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 2px;
    transition: background-color 0.15s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Page header */
.page-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.75rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Cards */
.card {
    border-radius: 8px;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

/* Badge refinements */
.badge {
    font-weight: 500;
}

/* Login card */
.card.shadow input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}
