/* DevFakeProviders custom styles */

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    overflow-y: auto;
}

.container-fluid {
    background-color: #f8f9fa;
}

/* Navbar customization */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    flex-shrink: 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Footer styling - REMOVED */

/* Card styling */
.card {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 500;
}

.card-header i {
    margin-right: 0.5rem;
}

/* Table styling */
.table {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table thead {
    background-color: #212529;
    border-bottom: 2px solid #000;
}

.table thead th {
    font-weight: 600;
    color: #ffffff !important;
    padding: 1rem 0.75rem;
    background-color: #212529;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
}

/* Dropdown in table support */
.table-responsive {
    overflow: visible !important;
}

.table td[style*="overflow: visible"] {
    overflow: visible !important;
    position: relative;
}

.btn-group {
    position: relative;
    display: inline-flex;
}

.btn-group.me-2 {
    margin-right: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.dropdown-item:hover {
    color: #fff;
    background-color: #0d6efd;
}

/* Badge styling */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

/* Alert styling */
.alert {
    border-radius: 0.375rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-dismissible .btn-close {
    padding: 0.375rem;
}

/* Button styling */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #5c636a;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Pre/Code styling */
pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-size: 0.875rem;
    overflow-x: auto;
    color: #212529;
}

code {
    color: #212529;
    font-family: 'Courier New', Courier, monospace;
}

code.id-truncated {
    color: #dc3545;
    font-size: 0.9em;
    cursor: help;
    padding: 0.25rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border-left: 3px solid #dc3545;
}

code.id-truncated:hover {
    background-color: #e9ecef;
    text-decoration: underline;
}

code.id-truncated .text-muted {
    opacity: 0.6;
}

/* DL styling */
dl {
    margin-bottom: 1.5rem;
}

dt {
    color: #495057;
    font-weight: 600;
}

dd {
    margin-bottom: 0.75rem;
    color: #212529;
}

/* Buttons group vertical */
.btn-group-vertical {
    display: flex;
    flex-direction: column;
}

.btn-group-vertical > .btn {
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.btn-group-vertical > .btn:last-child {
    margin-bottom: 0;
}

/* Icons styling */
i {
    margin-right: 0.25rem;
}

/* Spinner styling */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    margin-right: 0.5rem;
}

/* Blazor error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    pre {
        font-size: 0.75rem;
    }
}

