/* Labendar base.css — chrome shared by every page (navbar, layout, floating
 * actions). Extracted from base.html inline <style> blocks so it is cached
 * once instead of re-sent on every request. Loaded after tokens.css/app.css. */

* {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #FFFBF8;
    color: #2d3748;
    line-height: 1.7;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.08);
    flex-wrap: nowrap;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--orange-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    margin: 0 0.25rem;
    /* A link that breaks internally makes the whole navbar two rows tall. */
    white-space: nowrap;
}

/* Navbar labels that carry user-entered text (institution, timetable) and so can
   be arbitrarily long: cap them and ellipsise instead of stretching the bar. */
.nav-truncate {
    display: inline-block;
    max-width: 12rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.nav-link:hover {
    color: var(--orange-primary) !important;
    background: rgba(255, 107, 53, 0.1);
}

.nav-link.active {
    color: var(--orange-primary) !important;
    background: rgba(255, 107, 53, 0.1);
}

.login-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.login-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.login-btn:focus,
.login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.35);
}

.main-content {
    margin-top: 80px;
    padding-bottom: 64px;
}

/* Floating "back to schedule" action (directivo/teacher schedule views) */
.back-to-schedule {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: var(--orange-primary);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.back-to-schedule:hover {
    color: var(--orange-primary);
    transform: scale(1.04);
    box-shadow: var(--card-shadow-hover);
}

.back-to-schedule:focus-visible {
    color: var(--orange-primary);
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .back-to-schedule { left: 14px; bottom: 14px; padding: 0.5rem 0.85rem; font-size: 0.8rem; }
}

/* Floating help button (directivo Help Center entry point) */
.help-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.help-fab:hover,
.help-fab:focus {
    color: #fff;
    transform: scale(1.08);
    box-shadow: var(--card-shadow-hover);
}

@media (max-width: 575.98px) {
    .help-fab { width: 48px; height: 48px; font-size: 1.25rem; right: 14px; bottom: 14px; }
}
