html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

.layout-body {
    display: flex;
    flex: 1;
    min-height: 100vh;
    gap: 0; /* make sure there's no gap */
}

/* Instead of margin on body, add padding to main content */
.main-content {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 60px;
}

.navbar-logo {
    height: 65px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    object-fit: contain;
    vertical-align: middle;
}

/* CSS to rotate the chevron */
.collapse-icon {
    transition: transform 0.2s ease;
}

[aria-expanded="false"] .collapse-icon {
    transform: rotate(180deg);
}

/* App Cards */
/* Clamp title to 2 lines */
.app-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em; /* reserves space even for short titles */
}

.app-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.2em; /* reserves space even for short descriptions */
}

.app-card-border {
    border: 1px solid #dee2e6;
    /*border-top: 4px solid #b58900;*/
    border-top: 4px solid var(--app-golden);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card-border:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
}

.app-card-accent {
    
    color: var(--app-golden) !important;
}

.app-header-accent {
    
    border-left: 5px solid var(--app-golden);
    padding-left: 1.5rem;
}

.navbar {
    background-color: var(--app-navbar) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    background-color: var(--app-navbar);
    border-right: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar .nav-link {
    border-radius: 6px;
    margin: 1px 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link.active {
    background-color: var(--app-navbar);
    color: #fff;
}

.sidebar .nav-link:hover:not(.active) {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-section-label {
    display: block;
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.table-group-divider {
    border-top-color: var(--bs-primary) !important;
}