/* wwwroot/css/site.css */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 16px;
}

body {
    margin-bottom: 60px;
    background-color: #f8f9fa;
    color: #333;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    background-color: white;
}

.table > :not(caption) > * > * {
    padding: 1rem;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

code {
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: #d63384;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.display-4, .display-5 {
    font-weight: 600;
}

.btn-link {
    text-decoration: none;
}

    .btn-link:hover {
        text-decoration: none;
        opacity: 0.8;
    }

.collapse {
    transition: all 0.2s ease;
}

#mermaid-diagram {
    min-height: 500px;
    padding: 20px;
}

#mermaid-diagram svg {
    transition: transform 0.2s ease-in-out;
    margin: 0 auto;
    display: block;
}

.card-body {
    position: relative;
    overflow: hidden;
}


/* Updated Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 30px;
    width: auto;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
    color: #4a4a4a !important; /* Dark gray instead of black */
}

    .nav-link:after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #4a4a4a; /* Match the text color */
        transition: width 0.3s ease;
    }

    /* Update the color when hovering */
    .nav-link:hover {
        color: #666666 !important;
    }

    .nav-link.active:after {
        width: 100%;
    }

/* Adjust the logo to not be inverted anymore since we're on white background */
.navbar-brand img {
    filter: none;
}

#tablesTable tbody tr:hover td a {
    color: #0056b3 !important;
}