html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8fafc !important;
    color: #334155;
}

.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0d6efd;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .selected-menu::after {
    width: 80%;
}

.nav-link:hover, .selected-menu {
    color: #0d6efd !important;
}

.btn-sistema {
    border-radius: 50px !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 25px !important;
    transition: all 0.3s ease;
    background-color: #0d6efd;
    border: none;
    color: #fff;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.btn-sistema:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(13, 110, 253, 0.3);
    background-color: #0b5ed7;
}

footer {
    background-color: #0f172a;
    color: #94a3b8;
    width: 100%;
    height: auto;
    position: relative;
    left: 0;
    padding: 30px 0;
}

#app{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.z-n1 { z-index: -1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

a {
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.2s ease;
}

a:hover {
    color: #0a58ca;
}

main {
    padding-bottom: 120px;
    background-color: rgb(198, 221, 255) !important;
    border: none;
}

.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 80px 50px;
    border-radius: 20px;
    margin: 20px 0 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.feature-dark-block {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 30%),
                linear-gradient(135deg, #020617 0%, #131a2d 100%);
    color: #f8fafc;
}

.feature-dark-block p.text-uppercase {
    color: #93c5fd;
}

.page-home .hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('../img/slidehome.jpg') center/cover;
}

.hero-section h1, .hero-section span, .hero-section p, .hero-section a {
    position: relative;
    z-index: 2;
}

.image-head {
    position: relative;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    min-height: 300px;
    font-size: 20pt;
    font-weight: 300;
    opacity: 0;
    transition: opacity 1s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.overlay {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
    display: flex;
    align-items: center;
}

.image-head.loaded {
    opacity: 1;
}

.card.shadow-lg, .card.shadow-sm {
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

/* Hover only on home page cards */
.page-home .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 20px;
    color: #1e293b;
}

.card-body {
    padding: 20px;
    color: #363e49 !important;
    line-height: 1.6;
    text-align: left;
}

.about-topic {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #0f172a;
    padding: 0;
    background-color: transparent;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.treeview ul{
    list-style:none;
    padding-inline-start: 0px !important;
    margin-bottom: 5px;
}

.treeview .tree-topic{
    margin: 7px !important;
    font-size: 12pt;
}

.treeview .caret::before {
    content: "\25B6";
    color: #64748b;
    display: inline-block;
    margin-right: 5px;
}

.treeview .caret{
    cursor:pointer;
    user-select:none;
    font-weight: 500;
}

.treeview .caret-down::before {
    transform: rotate(90deg);
}

.treeview .nested{
    display:none;
}

.treeview .active{
    display: block;
}

.form-group{
    margin: 5px;
}

.text-descricao-topico{
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

span.novo,
span.tipo-num {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 30px;
    margin: 0 10px;
    font-weight: 600;
}

span.novo {
    background-color: #f59e0b;
    color: white;
}

span.tipo-num {
    background-color: #3b82f6;
    color: #ffffff;
}

.feature-icon-wrapper {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    display: inline-flex;
    transition: all 0.3s ease;
}

/* Hover only on home page cards */
.page-home .card:hover .feature-icon-wrapper {
    background: #e0f2fe;
}

@media screen and (max-width: 400px) {
    footer {
        padding: 20px 0;
    }
}
