/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: white;
    padding: 0;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 60px;
}

main {
    flex: 1;
    padding: 1rem;
    overflow: visible;
}

.top-row {
    background-color: white;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
    padding: 1rem 0;
    position: relative;
    z-index: 1050;
    overflow: visible;
}

/* User dropdown menu */
.top-row .dropdown {
    position: relative;
}

.top-row .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1060;
    min-width: 180px;
}

/* Navigation */
.nav-menu {
    padding-top: 1rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-link.active {
    background-color: #007bff;
    color: white;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 20px;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Metrics Display */
.metric-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 600;
    color: #495057;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007bff;
}

/* Star Rating */
.star-rating {
    font-size: 2rem;
    margin: 1rem 0;
}

.score-circle {
    margin: 1rem 0;
}

/* Tables */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.table-bordered th {
    background-color: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Alert Styles */
.alert-lg {
    font-size: 1.1rem;
    padding: 1.5rem;
}

/* Tooltips - FontAwesome icons */
.fa-question-circle {
    cursor: help;
    font-size: 0.9rem;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .metric-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* High Contrast for Outdoor Visibility */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .metric-value {
        font-weight: 900;
    }
}

/* 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;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
