/**
 * Legislative School - Custom Styles
 * Color Palette based on Coat of Arms
 * Version: 2.0.0 | Date: 22/10/2025
 */

/* ==================== COLOR VARIABLES ==================== */
:root {
    /* Green Palette */
    --ls-green-dark: #002921;
    --ls-green-medium: #00633C;
    --ls-green-primary: #00993F;
    --ls-green-light: #70C666;
    --ls-green-very-light: #E3EECC;
    
    /* Red Palette */
    --ls-red-dark: #391D03;
    --ls-red-medium: #CC3300;
    --ls-red-primary: #D7241A;
    --ls-red-light: #E34244;
    --ls-red-very-light: #EE6C77;
    
    /* Neutral Colors */
    --ls-black: #000000;
    --ls-white: #FFFFFF;
    --ls-gray-light: #F8F9FA;
    --ls-gray-medium: #6C757D;
}

/* ==================== UTILITY CLASSES ==================== */
.text-ls-green { color: var(--ls-green-primary) !important; }
.text-ls-green-dark { color: var(--ls-green-dark) !important; }
.text-ls-red { color: var(--ls-red-primary) !important; }
.bg-ls-green { background-color: var(--ls-green-primary) !important; }
.bg-ls-red { background-color: var(--ls-red-primary) !important; }

/* Additional brand colors used by LS cards (blue/violet/orange/yellow) */
:root {
    --ls-blue: #0d6efd;      /* bootstrap-like blue */
    --ls-violet: #6f42c1;    /* violet/purple */
    --ls-orange: #fd7e14;    /* orange */
    --ls-yellow: #ffc107;    /* yellow */
}

.text-ls-blue { color: var(--ls-blue) !important; }
.text-ls-violet { color: var(--ls-violet) !important; }
.text-ls-orange { color: var(--ls-orange) !important; }
.text-ls-yellow { color: var(--ls-yellow) !important; }

/* ==================== GLOBAL PAGE TRANSFORMATIONS ==================== */
/* Transform entire page when in legislative school context */

/* Topbar (Accessibility Bar) */
body.legislative-school .topbar {
    background-color: var(--ls-red-medium) !important;
    color: var(--ls-white) !important;
}

body.legislative-school .topbar,
body.legislative-school .topbar p,
body.legislative-school .topbar a,
body.legislative-school .topbar span {
    color: var(--ls-white) !important;
}

body.legislative-school .topbar .list-inline-item a {
    border: 1px solid transparent;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

body.legislative-school .topbar a:hover {
    color: var(--ls-red-very-light) !important;
    background-color: var(--ls-red-dark) !important;
    border-color: var(--ls-red-light);
}

body.legislative-school .topbar li a {
    background-color: transparent; /* preserve background icons from base CSS */
    border-radius: 6px;
}

/* Ensure accessibility icons are visible and text doesn't overlap the icon */
body.legislative-school .topbar li a {
    padding-left: 36px !important;           /* room for the icon */
    background-position: 12px center !important;
    background-size: 18px auto !important;
    text-shadow: none !important;
}

@media (max-width: 1199.98px) {
    body.legislative-school .topbar,
    body.legislative-school .topbar a,
    body.legislative-school .topbar span {
        color: var(--ls-white) !important;
    }
}

/* Ensure main site dropdowns appear above LS submenu */
body.legislative-school .navbar .dropdown-menu,
body.legislative-school .navbar .collapsing,
body.legislative-school .navbar .collapse.show {
    z-index: 1100;
}

/* Navbar dropdowns must float (not expand container) on LS pages */
body.legislative-school .navbar .dropdown-menu {
    position: absolute; /* ensure floating dropdown */
    top: 100%;
    left: 0;
    margin-top: 0;
}

/* Make hover also open dropdowns on desktop within LS scope (mirrors base rule) */
@media (min-width: 992px) {
    body.legislative-school .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Main Header */
body.legislative-school header {
    background-color: var(--ls-white);
    border-bottom: 3px solid var(--ls-green-primary);
}

/* Header quick action buttons: change only text/icon color, not background */
body.legislative-school header .btn-header-block {
    background-color: transparent !important;
    border: 0 !important;
    color: var(--ls-green-dark) !important;
}

body.legislative-school header .btn-header-block .icon {
    color: var(--ls-green-dark) !important;
}

body.legislative-school header .btn-header-block:hover,
body.legislative-school header .btn-header-block:focus {
    background-color: transparent !important;
    color: var(--ls-green-primary) !important;
}

body.legislative-school header .btn-header-block:hover .icon,
body.legislative-school header .btn-header-block:focus .icon {
    color: var(--ls-green-primary) !important;
}

/* Social media icons: keep buttons transparent, change icon color only */
body.legislative-school header .social-media .btn-social-media {
    background-color: transparent !important;
    color: var(--ls-green-dark) !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.legislative-school header .social-media .btn-social-media:hover,
body.legislative-school header .social-media .btn-social-media:focus {
    background-color: transparent !important;
    color: var(--ls-green-primary) !important;
}

body.legislative-school header .header-media {
    color: var(--ls-green-dark);
}

body.legislative-school header .social-media i {
    color: inherit !important;
}

/* Main Navigation Bar */
body.legislative-school .navbar,
body.legislative-school nav.navbar {
    background-color: var(--ls-green-primary) !important;
}

body.legislative-school .navbar .nav-link,
body.legislative-school .navbar .navbar-brand,
body.legislative-school .navbar-nav .nav-link {
    color: var(--ls-white) !important;
}

body.legislative-school .navbar .nav-link:hover,
body.legislative-school .navbar .nav-link:focus {
    color: var(--ls-white) !important;
    background-color: var(--ls-green-medium) !important;
}

body.legislative-school .navbar .nav-link.active,
body.legislative-school .navbar .dropdown-item.active {
    background-color: var(--ls-green-dark) !important;
    color: var(--ls-white) !important;
}

body.legislative-school .page-header {
    padding: 30px 0;
}

body.legislative-school .page-header h1 {
    color: var(--ls-green-dark);
    letter-spacing: 1px;
}

body.legislative-school .breadcrumb .breadcrumb-item a {
    color: var(--ls-green-primary);
}

body.legislative-school .breadcrumb .breadcrumb-item.active,
body.legislative-school .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ls-green-dark);
}

body.legislative-school .content-wrapper,
body.legislative-school .content-wrapper p,
body.legislative-school .content-wrapper li {
    color: var(--ls-green-dark);
}

body.legislative-school .content-wrapper a {
    color: var(--ls-green-dark); /* default text links in dark green */
    font-weight: 600;
}

body.legislative-school .content-wrapper a:hover {
    color: var(--ls-green-medium); /* keep hover within green palette */
}

body.legislative-school .navbar-toggler {
    border-color: var(--ls-white);
}

body.legislative-school .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Dropdown Menus */
body.legislative-school .dropdown-menu {
    background-color: var(--ls-green-medium);
    z-index: 1100; /* ensure above LS nav */
}

body.legislative-school .dropdown-item {
    color: var(--ls-white) !important;
}

body.legislative-school .dropdown-item:hover {
    background-color: var(--ls-green-dark);
}

/* Footer */
body.legislative-school footer {
    background-color: var(--ls-green-primary) !important;
}

body.legislative-school footer,
body.legislative-school footer p,
body.legislative-school footer address,
body.legislative-school footer h6,
body.legislative-school .footer-content {
    color: var(--ls-white) !important;
}

body.legislative-school footer a {
    color: var(--ls-white) !important;
}

body.legislative-school footer a:hover {
    color: var(--ls-green-light) !important;
}

body.legislative-school .footer-content {
    background-color: var(--ls-green-primary) !important;
    color: var(--ls-white) !important;
}

body.legislative-school .footer-content a {
    color: var(--ls-white) !important;
}

body.legislative-school .footer-content a:hover {
    color: var(--ls-green-light) !important;
}

body.legislative-school .footer-content img {
    filter: drop-shadow(0 6px 12px rgba(0, 41, 33, 0.25));
}

body.legislative-school .footer-copyright {
    background-color: var(--ls-green-dark) !important;
    color: var(--ls-white) !important;
}

/* Scroll to Top Button */
body.legislative-school .scroll {
    background-color: var(--ls-green-primary) !important;
    color: var(--ls-white) !important;
}

body.legislative-school .scroll:hover {
    background-color: var(--ls-green-dark) !important;
}

/* Buttons and Interactive Elements */
body.legislative-school .btn-primary,
body.legislative-school .btn-primary:focus {
    background-color: var(--ls-green-primary);
    border-color: var(--ls-green-primary);
    color: var(--ls-white);
    box-shadow: none;
}

body.legislative-school .btn-primary:hover,
body.legislative-school .btn-primary:active {
    background-color: var(--ls-green-dark);
    border-color: var(--ls-green-dark);
    color: var(--ls-white);
}

body.legislative-school .btn-outline-primary {
    border: 2px solid var(--ls-green-primary);
    color: var(--ls-green-dark);
    font-weight: 600;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

body.legislative-school .btn-outline-primary:hover,
body.legislative-school .btn-outline-primary:focus,
body.legislative-school .btn-outline-primary:active {
    background-color: var(--ls-green-primary);
    color: var(--ls-white);
    border-color: var(--ls-green-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 63, 0.25);
}

body.legislative-school .btn-link {
    color: var(--ls-green-dark);
}

body.legislative-school .btn-link:hover {
    color: var(--ls-red-primary);
}

body.legislative-school .form-control:focus,
body.legislative-school .form-select:focus {
    border-color: var(--ls-green-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 63, 0.25);
}

/* SweetAlert customization */
body.legislative-school .swal2-popup .swal2-confirm {
    background-color: var(--ls-green-primary) !important;
    border: 2px solid var(--ls-green-primary) !important;
    color: var(--ls-white) !important;
    font-weight: 600;
}

body.legislative-school .swal2-popup .swal2-confirm:hover,
body.legislative-school .swal2-popup .swal2-confirm:focus {
    background-color: var(--ls-green-dark) !important;
    border-color: var(--ls-green-dark) !important;
}

body.legislative-school .swal2-popup .swal2-cancel {
    border: 2px solid var(--ls-green-primary) !important;
    color: var(--ls-green-dark) !important;
    background-color: transparent !important;
    font-weight: 600;
}

body.legislative-school .swal2-popup .swal2-cancel:hover,
body.legislative-school .swal2-popup .swal2-cancel:focus {
    background-color: var(--ls-green-primary) !important;
    color: var(--ls-white) !important;
}

/* Course cards */
body.legislative-school .ls-section-title {
    color: var(--ls-green-dark);
    font-weight: 700;
    border-left: 4px solid var(--ls-red-primary);
    padding-left: 12px;
    margin-bottom: 1.5rem;
}

body.legislative-school .ls-course-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 41, 33, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

body.legislative-school .ls-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 41, 33, 0.15);
}

body.legislative-school .ls-course-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.legislative-school .ls-course-card .card-text {
    color: var(--ls-green-dark);
}

body.legislative-school .ls-course-card .badge {
    background-color: var(--ls-red-primary);
    color: var(--ls-white);
    font-weight: 600;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

body.legislative-school .ls-course-card .btn {
    margin-top: auto;
}

body.legislative-school .btn-load-more {
    border: 2px solid var(--ls-green-primary);
    color: var(--ls-green-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.6rem 2.4rem;
    border-radius: 40px;
}

body.legislative-school .btn-load-more:hover {
    background-color: var(--ls-green-primary);
    color: var(--ls-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 41, 33, 0.18);
}

body.legislative-school .course-legend {
    background-color: var(--ls-green-very-light);
    border: 1px solid rgba(0, 153, 63, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--ls-green-dark);
}

body.legislative-school .curso-realizado {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== LEGISLATIVE SCHOOL NAVIGATION ==================== */
.legislative-school-nav {
    background-color: var(--ls-green-primary);
    padding: 0;
    position: relative;
    z-index: 900; /* keep below main dropdowns */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legislative-school-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== NAV TABS ==================== */
.ls-nav-tabs {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ls-nav-tabs::-webkit-scrollbar {
    display: none;
}

.ls-nav-tabs .nav-item {
    margin: 0;
    white-space: nowrap;
}

.ls-nav-tabs .nav-link {
    color: var(--ls-white);
    background-color: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0; /* Remove qualquer margin padrão do Bootstrap */
}

.ls-nav-tabs .nav-link i.fa-home {
    font-size: 16px;
}

.ls-nav-tabs .nav-link span {
    white-space: normal;
    line-height: 1.2;
}

.ls-nav-tabs .nav-link:hover {
    background-color: var(--ls-green-medium);
    border-bottom-color: var(--ls-green-very-light);
    color: var(--ls-white);
}

.ls-nav-tabs .nav-link.active {
    background-color: var(--ls-green-medium);
    color: var(--ls-white);
    font-weight: 700;
}

/* ==================== MOBILE MENU BUTTON ==================== */
.menu-btn {
    display: none;
    background-color: var(--ls-green-primary);
    border: none;
    color: var(--ls-white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
}

.menu-btn:hover {
    background-color: var(--ls-green-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==================== MOBILE SIDEBAR ==================== */
.ls-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--ls-white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
}

.ls-sidebar.active {
    left: 0;
}

.ls-sidebar-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800; /* thicker title */
}

.close-btn {
    background-color: transparent;
    border: none;
    color: var(--ls-white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--ls-red-light);
}

.ls-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ls-sidebar-menu li {
    border-bottom: 1px solid var(--ls-gray-light);
    position: relative;
}

.ls-sidebar-menu li.active {
    border-left: 4px solid var(--ls-red-primary);
    background-color: var(--ls-green-very-light);
}

.ls-sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: var(--ls-green-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ls-sidebar-menu li.active a {
    color: var(--ls-green-primary);
    font-weight: 700;
    padding-left: 16px;
}

.ls-sidebar-menu li a:hover {
    background-color: var(--ls-green-very-light);
    color: var(--ls-green-primary);
}

.ls-sidebar-menu li a i {
    font-size: 18px;
    color: var(--ls-red-primary);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.ls-sidebar-menu li a span {
    flex: 1;
    line-height: 1.4;
}

/* Participant panel sidebar hover styles */
body.legislative-school .list-group .list-group-item {
    color: var(--ls-green-dark);
    border-color: rgba(0, 153, 63, 0.2);
}

body.legislative-school .list-group .list-group-item:hover,
body.legislative-school .list-group .list-group-item:focus {
    background-color: transparent; /* remove light green bg */
    color: var(--ls-green-primary);
    text-decoration: underline; /* subtle text cue on hover */
}

body.legislative-school .list-group .list-group-item-active,
body.legislative-school .list-group .list-group-item-active:hover {
    background-color: transparent; /* keep transparent for active */
    color: var(--ls-green-primary);
    font-weight: 700;
}

/* ==================== OVERLAY ==================== */
.ls-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ls-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== MODAL ==================== */
.ls-modal .modal-header {
    background-color: var(--ls-green-primary);
    color: var(--ls-white);
}

.ls-modal .modal-title {
    font-weight: 700;
    font-size: 22px;
}

.ls-modal .btn-close {
    filter: brightness(0) invert(1);
}

.number-card {
    padding: 20px;
    border-radius: 10px;
    background-color: var(--ls-gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.number-card .display-4 {
    font-weight: 900;
    margin: 10px 0;
}

.number-card .lead {
    font-weight: 600;
    color: var(--ls-green-dark);
    margin: 0;
}

/* ==================== PAGE CONTENT STYLES ==================== */
body.legislative-school h1,
body.legislative-school h2,
body.legislative-school h3,
body.legislative-school h4,
body.legislative-school h5,
body.legislative-school h6 {
    color: var(--ls-green-dark);
}

body.legislative-school .page-title,
body.legislative-school .section-title {
    color: var(--ls-green-dark);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* ==================== BUTTONS ==================== */
body.legislative-school .btn-primary {
    background-color: var(--ls-green-primary);
    border-color: var(--ls-green-primary);
    color: var(--ls-white);
}

body.legislative-school .btn-primary:hover {
    background-color: var(--ls-green-medium);
    border-color: var(--ls-green-medium);
}

body.legislative-school .btn-secondary {
    background-color: var(--ls-red-primary);
    border-color: var(--ls-red-primary);
    color: var(--ls-white);
}

body.legislative-school .btn-secondary:hover {
    background-color: var(--ls-red-medium);
    border-color: var(--ls-red-medium);
}

/* ==================== CARDS ==================== */
body.legislative-school .card {
    border: 1px solid var(--ls-gray-light);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

body.legislative-school .card:hover {
    border-color: var(--ls-green-light);
    box-shadow: 0 8px 20px rgba(0, 153, 63, 0.15);
    transform: translateY(-5px);
}

body.legislative-school .card-header {
    background: linear-gradient(135deg, var(--ls-green-primary) 0%, var(--ls-green-medium) 100%);
    color: var(--ls-white);
    font-weight: 600;
    border: none;
    padding: 15px 20px;
}

body.legislative-school .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

body.legislative-school .card:hover .card-img-top {
    transform: scale(1.1);
}

body.legislative-school .card-title {
    color: var(--ls-green-dark);
    font-weight: 700;
    font-size: 1rem;
}

body.legislative-school .card-text {
    color: var(--ls-gray-medium);
}

/* Course Cards */
body.legislative-school .course-card {
    background: var(--ls-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

body.legislative-school .course-card:hover {
    box-shadow: 0 10px 30px rgba(0, 153, 63, 0.2);
    transform: translateY(-8px);
}

body.legislative-school .course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--ls-red-primary);
    color: var(--ls-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

body.legislative-school .course-info {
    padding: 20px;
}

body.legislative-school .course-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--ls-gray-light);
    font-size: 14px;
    color: var(--ls-gray-medium);
}

body.legislative-school .course-meta i {
    color: var(--ls-green-primary);
}

/* Sections */
body.legislative-school .section-green {
    background: linear-gradient(135deg, var(--ls-green-very-light) 0%, var(--ls-white) 100%);
    padding: 60px 0;
}

body.legislative-school .section-highlight {
    background: linear-gradient(135deg, var(--ls-green-primary) 0%, var(--ls-green-medium) 100%);
    color: var(--ls-white);
    padding: 60px 0;
}

body.legislative-school .section-highlight h1,
body.legislative-school .section-highlight h2,
body.legislative-school .section-highlight h3,
body.legislative-school .section-highlight h4,
body.legislative-school .section-highlight h5,
body.legislative-school .section-highlight h6 {
    color: var(--ls-white);
}

body.legislative-school .section-highlight p {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Banner */
body.legislative-school .hero-banner {
    background: linear-gradient(135deg, var(--ls-green-dark) 0%, var(--ls-green-primary) 100%);
    color: var(--ls-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

body.legislative-school .hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

body.legislative-school .hero-banner .container {
    position: relative;
    z-index: 1;
}

body.legislative-school .hero-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--ls-white);
}

body.legislative-school .hero-banner .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Statistics */
body.legislative-school .stats-box {
    background: var(--ls-white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.legislative-school .stats-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 153, 63, 0.15);
}

body.legislative-school .stats-icon {
    font-size: 50px;
    color: var(--ls-green-primary);
    margin-bottom: 15px;
}

body.legislative-school .stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ls-green-dark);
    margin: 10px 0;
}

body.legislative-school .stats-label {
    font-size: 1rem;
    color: var(--ls-gray-medium);
    font-weight: 600;
}

/* Timeline */
body.legislative-school .timeline {
    position: relative;
    padding: 20px 0;
}

body.legislative-school .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ls-green-light);
    transform: translateX(-50%);
}

body.legislative-school .timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--ls-white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

body.legislative-school .timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--ls-green-primary);
    border: 4px solid var(--ls-white);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Links */
body.legislative-school a {
    color: var(--ls-green-primary);
    transition: color 0.3s ease;
}

body.legislative-school a:hover {
    color: var(--ls-green-medium);
}

/* Badges */
body.legislative-school .badge-green {
    background-color: var(--ls-green-primary);
    color: var(--ls-white);
}

body.legislative-school .badge-red {
    background-color: var(--ls-red-primary);
    color: var(--ls-white);
}

/* Alerts */
body.legislative-school .alert-success {
    background-color: var(--ls-green-very-light);
    border-color: var(--ls-green-light);
    color: var(--ls-green-dark);
}

body.legislative-school .alert-danger {
    background-color: var(--ls-red-very-light);
    border-color: var(--ls-red-light);
    color: var(--ls-red-dark);
}

/* ==================== PARTICIPANT AREA ==================== */
body.legislative-school .participant-container,
body.legislative-school .login-container,
body.legislative-school .register-container {
    background: linear-gradient(135deg, var(--ls-green-very-light) 0%, var(--ls-white) 100%);
    min-height: 60vh;
    padding: 40px 0;
}

body.legislative-school .participant-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 99, 60, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.legislative-school .participant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 99, 60, 0.15);
}

body.legislative-school .participant-card .card-header {
    background: linear-gradient(135deg, var(--ls-green-primary) 0%, var(--ls-green-medium) 100%);
    color: var(--ls-white);
    padding: 25px;
    border: none;
}

body.legislative-school .participant-card .card-body {
    padding: 30px;
    background-color: var(--ls-white);
    color: var(--ls-green-dark);
}

body.legislative-school .form-control {
    border: 2px solid var(--ls-gray-light);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

body.legislative-school .form-control:focus {
    border-color: var(--ls-green-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 63, 0.25);
}

body.legislative-school .form-label {
    color: var(--ls-green-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

body.legislative-school .btn-login,
body.legislative-school .btn-register {
    background: linear-gradient(135deg, var(--ls-green-primary) 0%, var(--ls-green-medium) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    color: var(--ls-white);
    transition: all 0.3s ease;
}

body.legislative-school .btn-login:hover,
body.legislative-school .btn-register:hover {
    background: linear-gradient(135deg, var(--ls-green-medium) 0%, var(--ls-green-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 63, 0.3);
}

body.legislative-school .dashboard-card {
    background: var(--ls-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--ls-green-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.legislative-school .dashboard-card:hover {
    border-left-color: var(--ls-red-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.legislative-school .dashboard-card h5 {
    color: var(--ls-green-dark);
    margin-bottom: 10px;
}

body.legislative-school .dashboard-card .icon {
    font-size: 40px;
    color: var(--ls-green-primary);
    margin-bottom: 15px;
}

body.legislative-school .course-item {
    background: var(--ls-white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--ls-gray-light);
    transition: all 0.3s ease;
}

body.legislative-school .course-item:hover {
    border-color: var(--ls-green-light);
    box-shadow: 0 5px 15px rgba(0, 153, 63, 0.1);
}

body.legislative-school .progress {
    height: 10px;
    border-radius: 10px;
    background-color: var(--ls-gray-light);
}

body.legislative-school .progress-bar {
    background: linear-gradient(90deg, var(--ls-green-primary) 0%, var(--ls-green-light) 100%);
    border-radius: 10px;
}

body.legislative-school .badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

body.legislative-school .badge-status.enrolled {
    background-color: var(--ls-green-very-light);
    color: var(--ls-green-dark);
}

body.legislative-school .badge-status.in-progress {
    background-color: #FFF3CD;
    color: #856404;
}

body.legislative-school .badge-status.completed {
    background-color: var(--ls-green-light);
    color: var(--ls-white);
}

/* Tables */
body.legislative-school .table {
    border-radius: 10px;
    overflow: hidden;
}

body.legislative-school .table thead {
    background-color: var(--ls-green-primary);
    color: var(--ls-white);
}

body.legislative-school .table tbody tr {
    transition: background-color 0.3s ease;
}

body.legislative-school .table tbody tr:hover {
    background-color: var(--ls-green-very-light);
}

/* Certificates */
body.legislative-school .certificate-card {
    background: linear-gradient(135deg, var(--ls-white) 0%, var(--ls-green-very-light) 100%);
    border: 2px solid var(--ls-green-light);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

body.legislative-school .certificate-card:hover {
    border-color: var(--ls-green-primary);
    box-shadow: 0 10px 25px rgba(0, 153, 63, 0.15);
    transform: scale(1.02);
}

body.legislative-school .certificate-icon {
    font-size: 60px;
    color: var(--ls-red-primary);
    margin-bottom: 15px;
}

.ls-sidebar-header {
    background-color: var(--ls-green-dark); /* darker green for header */
    color: var(--ls-white) !important;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive logo inside sidebar header */
.ls-sidebar-header img {
    max-width: 160px; /* never exceed sidebar visual area */
    width: auto;
    height: 40px; /* keep a consistent header height */
    object-fit: contain;
    display: block;
}

@media (max-width: 420px) {
    .ls-sidebar-header img {
        max-width: 120px;
        height: 36px;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1023px) {
    .ls-nav-tabs {
        display: none !important;
    }
    
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mantém a barra visível para que o botão flutuante não desapareça */
    .legislative-school-nav {
        display: block !important;
        background: transparent;
        box-shadow: none;
    }
    
    .nav-wrapper {
        justify-content: center
    }
}

@media (min-width: 1024px) {
    .ls-nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ls-nav-tabs .nav-item {
        flex: 0 1 auto;
    }
    
    .ls-nav-tabs .nav-link {
        padding: 15px 18px;
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .ls-nav-tabs .nav-link {
        padding: 15px 22px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .ls-sidebar {
        width: 280px;
        left: -280px;
    }
    
    body.legislative-school .timeline::before {
        left: 20px;
    }
    
    body.legislative-school .timeline-item::before {
        left: 20px;
    }
    
    body.legislative-school .hero-banner h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .ls-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .menu-btn {
        width: 52px;
        height: 52px;
        font-size: 18px;
        bottom: 16px;
        right: 16px;
    }
}

@media (min-width: 1400px) {
    .nav-wrapper {
        max-width: 1600px;
    }
    
    .ls-nav-tabs .nav-link {
        font-size: 15px;
        padding: 18px 25px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

/* ==================== ACCESSIBILITY ==================== */

.ls-nav-tabs .nav-link:focus,
.menu-btn:focus,
.close-btn:focus {
    outline: 2px solid var(--ls-white);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .ls-nav-tabs .nav-link {
        border: 1px solid var(--ls-white);
    }
    
    .ls-nav-tabs .nav-link.active {
        border-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legislative-school-nav,
    .ls-sidebar,
    .ls-sidebar-overlay,
    .ls-nav-tabs .nav-link,
    .number-card {
        transition: none;
        animation: none;
    }
}

/* ==================== SMOOTH SCROLL ==================== */
html.legislative-school {
    scroll-behavior: smooth;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .legislative-school-nav,
    .menu-btn,
    .ls-sidebar,
    .ls-sidebar-overlay,
    .topbar,
    .scroll {
        display: none !important;
    }
}

/* ==================== RESPONSIVIDADE MOBILE ==================== */
/* Mantém a barra para exibir o botão flutuante abaixo de 1000px */
@media (max-width: 999px) {
    .legislative-school-nav {
        display: block !important;
        background: transparent;
        box-shadow: none;
    }
    .ls-nav-tabs { display: none !important; }
    .menu-btn { display: flex; align-items: center; justify-content: center; }

    /* Centraliza os ícones de acessibilidade no eixo Y */
    .scroll {
        top: 50% !important;
        transform: translateY(-50%);
    }
}

/* ==================== PARTICIPANT AREA STYLES ==================== */

/* Mini Painel - Sidebar Menu */
.participant-sidebar .list-group-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.participant-sidebar .list-group-item i {
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
}

.participant-sidebar .list-group-item span {
    flex: 1;
}

.participant-sidebar .list-group-item:hover {
    padding-left: 28px;
}

/* Responsividade do mini painel */
@media (max-width: 767px) {
    .participant-sidebar .list-group-item {
        padding: 14px 16px;
    }
    /* Espaçamento do mini painel colapsado em mobile */
    .participant-sidebar {
        margin-bottom: 1rem;
    }
    /* Botões (Salvar/Cancelar) empilhados e 100% largura em telas pequenas */
    .content-wrapper .row > .col-12.col-md-9 form .btn.btn-md {
        width: 100%;
        display: block;
    }
    .content-wrapper .row > .col-12.col-md-9 form .btn.btn-md + .btn.btn-md {
        margin-top: .5rem;
    }
}

/* ==================== END ==================== */

/* ==================== LS SUBMENU NAV TABS FIX ==================== */
/* Remove borda inferior de 1px nos itens do submenu em desktop */
.legislative-school-nav .nav-tabs { border-bottom: 0 !important; }
.legislative-school-nav .nav-tabs .nav-item { margin-bottom: 0 !important; }
.legislative-school-nav .nav-tabs .nav-link { border: 0 !important; border-bottom: 0 !important; }

/* ==================== ACCESSIBILITY ICONS CENTERING ==================== */
/* Quando apenas ícones ficam visíveis (texto oculto abaixo de XL), centralizar verticalmente */
@media (max-width: 1199.98px) {
    body.legislative-school .topbar .list-inline-item a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0 !important;
        background-position: center center !important;
        background-size: 18px auto !important;
    }
}
