/* Enhanced font anti-aliasing and smoothing for super smooth text rendering */
* {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif !important;
    /* Ultimate font smoothing for all browsers */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 0;
    font-variant-ligatures: common-ligatures contextual;
    font-kerning: auto;
    font-optical-sizing: auto;
    /* Additional smoothing for high-DPI displays */
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Specific optimizations for different text elements with Space Grotesk */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.01em; /* Slightly adjusted for Space Grotesk's characteristics */
    line-height: 1.2;
    text-rendering: optimizeLegibility;
}

p, span, div, a, button, input, textarea, label {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 400;
    letter-spacing: -0.003em; /* Optimized for Space Grotesk */
    line-height: 1.6;
    text-rendering: optimizeSpeed;
}

/* Small text optimizations for Space Grotesk */
small, .small, .text-sm {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 400;
    letter-spacing: 0.005em; /* Better readability for small text */
}

/* Large text optimizations for Space Grotesk */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em; /* Tighter spacing for large display text */
    text-rendering: geometricPrecision;
}

/* Form elements with Space Grotesk */
.form-control, .form-select, .btn {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 400;
    letter-spacing: 0;
}

/* Navigation and menu items */
.nav-link, .navbar-nav .nav-link, .dropdown-item {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 500;
    letter-spacing: -0.002em;
}

/* Card titles and content */
.card-title, .card-subtitle {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.card-text {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 400;
    letter-spacing: -0.002em;
}

/* Table content */
.table {
    font-family: 'Space Grotesk', sans-serif !important;
}

.table th {
    font-weight: 600;
    letter-spacing: 0.002em;
}

.table td {
    font-weight: 400;
    letter-spacing: -0.001em;
}

/* Public layout enhancements */
.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    .public-page .page-wrapper {
        flex: 1;
    }

.prose {
    max-width: none;
}

    .prose h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--tblr-border-color);
        padding-bottom: 0.5rem;
    }

    .prose section {
        scroll-margin-top: 2rem;
    }

/* Table of contents styling */
.nav-pills .nav-link {
    color: var(--tblr-muted);
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

    .nav-pills .nav-link:hover {
        color: var(--tblr-primary);
        background-color: var(--tblr-light);
    }

/* Status dropdown styling */
.status-dropdown .dropdown-menu {
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
}

.status-dropdown .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tblr-muted);
    margin-top: 0.5rem;
}

    .status-dropdown .dropdown-header:first-child {
        margin-top: 0;
    }

.status-dropdown .service-status-item:hover {
    background-color: var(--tblr-light);
}


.dropdown-filter {
    padding: .4375rem .75rem !important;
    line-height: 1.4285714286 !important;
    font-size: 0.875rem !important;
    height: 36px !important;
}

html {
    overflow: visible;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--tblr-accordion-btn-padding-y) var(--tblr-accordion-padding-x);
    color: inherit;
    text-align: inherit;
    background-color: transparent;
    border: 0;
    font-size: inherit;
    font-weight: var(--tblr-accordion-btn-font-weight);
    gap: .75rem;
}

/* Avatar initials styling */
.avatar-initials {
    color: white;
    font-size: 3.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    font-family: 'Space Grotesk', sans-serif !important;
}

    /* Dashboard avatar - larger size */
    .avatar-initials.dashboard-avatar {
        width: 400px;
        height: 185px;
    }

    /* Directory avatar - smaller size */
    .avatar-initials.directory-avatar {
        width: 8rem;
        height: 8rem;
        font-size: 2rem;
    }


.dashboard-avatar {
    width: 400px !important;
    height: 185px !important;
}

.btn-geist-icon {
    margin-bottom: 1px !important;
}
