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

h1, h2, h3 {
    color: #343a40;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar {
    background-color: #343a40;
    padding: 1rem;
}

.navbar a {
    color: #ffffff;
    margin-right: 1rem;
}

.counter {
    font-size: 2rem;
    margin: 2rem 0;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Custom styles for SNOMED app */
.snomed-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

/* Professional Home Page Styles */
.hero-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-image {
    padding: 2rem;
}

.services-section {
    background-color: #f8f9fa;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.featured-project {
    padding: 4rem 0;
}

.project-preview {
    text-align: center;
    padding: 2rem;
}

.browser-mockup {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.browser-top {
    background: #f1f3f4;
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.browser-dots span:first-child {
    background: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #27ca3f;
}

.browser-content {
    padding: 3rem;
    text-align: center;
    background: #f8f9fa;
}

.about-section {
    background-color: #f8f9fa;
}

.expertise-item {
    text-align: center;
    padding: 1rem;
}

.expertise-item i {
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.text-primary {
    color: #667eea !important;
}

h1, h2, h3, h4, h5 {
    color: #2d3748;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

section {
    position: relative;
}

@media (max-width: 768px) {
    .hero-banner {
        text-align: center;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Sidebar Layout Styles */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-item {
    font-size: 0.9rem;
    position: relative;
    display: block;
    padding: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 100%;
    padding: 0 1rem;
}

.sidebar .nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

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

.sidebar .nav-item a span {
    margin-right: 0.5rem;
}

main {
    flex: 1;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row ::deep a, .top-row ::deep .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
    text-decoration: underline;
}

.top-row ::deep a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 .2rem;
}

@media (max-width: 767.98px) {
    .page {
        flex-direction: column-reverse;
    }

    .sidebar .nav-scrollable {
        /* Mobile: make the sidebar scrollable */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .navbar-toggler {
        display: block;
    }

    .sidebar {
        width: 100% !important;
        height: auto;
        position: relative;
    }

    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .sidebar .nav-scrollable {
        /* Desktop: make the sidebar scrollable */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .navbar-toggler {
        display: none;
    }

    main {
        width: calc(100% - 250px);
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block !important;
    }
}

/* Error handling */
#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;
}

/* Enhanced SNOMED Usage Data Table Styling */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
    border-color: #e9ecef;
}

/* Usage data cell enhancements */
.table td[style*="background-color"] {
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.table td[style*="background-color"]:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Professional color scheme adjustments */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
    font-weight: 500;
}

/* Card styling improvements */
.card {
    border: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .table-responsive {
        font-size: 0.9em;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .table td[style*="background-color"] {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    .badge {
        font-size: 0.7rem;
        margin: 0.1rem;
    }
}