html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.sidebar {
    background: linear-gradient(180deg, #1b6ec2 0%, #1861ac 100%);
    width: 250px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

main {
    flex: 1;
    margin-left: 250px;
    min-height: 100vh;
}

.top-row {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.top-row h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHZpZXdCb3g9IjAgMCA1NiA0OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUgNi41TDIwLjUgMTIuNUwyNy41IDYuNUgxMy41WiIgZmlsbD0iI0U0MjgyOCIvPgo8cGF0aCBkPSJNMjguNSAxMi41TDM1LjUgNi41SDI4LjVWMTIuNVoiIGZpbGw9IiNFNDI4MjgiLz4KPHBhdGggZD0iTTM1LjUgNi41TDQyLjUgMTIuNUwzNS41IDE4LjVWNi41WiIgZmlsbD0iI0U0MjgyOCIvPgo8cGF0aCBkPSJNMjguNSAxOC41TDIxLjUgMjQuNUwyOC41IDMwLjVWMTguNVoiIGZpbGw9IiNFNDI4MjgiLz4KPHBhdGggZD0iTTIxLjUgMjQuNUwxNC41IDE4LjVWMzAuNUwyMS41IDI0LjVaIiBmaWxsPSIjRTQyODI4Ii8+CjxwYXRoIGQ9Ik0xNC41IDE4LjVMNy41IDI0LjVMMTQuNSAzMC41VjE4LjVaIiBmaWxsPSIjRTQyODI4Ii8+CjxwYXRoIGQ9Ik03LjUgMjQuNUwwLjUgMTguNVYzMC41TDcuNSAyNC41WiIgZmlsbD0iI0U0MjgyOCIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPHBhdGggZD0iTTQyLjUgMTIuNUw0OS41IDE4LjVMNDIuNSAyNC41VjEyLjVaIiBmaWxsPSIjRTQyODI4Ii8+CjxwYXRoIGQ9Ik00OS41IDE4LjVMNTYuNSAyNC41TDQ5LjUgMzAuNVYxOC41WiIgZmlsbD0iI0U0MjgyOCIgZmlsbC1vcGFjaXR5PSIwLjIiLz4KPC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    padding: 1rem 1.5rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-scrollable {
    padding: 1rem 0;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff !important;
    border-left-color: #fff;
}

.nav-link.active {
    background-color: rgba(255,255,255,0.15);
    color: #fff !important;
    border-left-color: #fff;
    font-weight: 600;
}

.navbar-toggler {
    display: none;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card-title {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.stat-card-footer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #999;
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.content-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    main {
        margin-left: 0;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

