/* Sticky Footer Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex-grow: 1;
}

.it-footer {
    flex-shrink: 0;
    width: 100% !important;
}

/* Header and Navigation Styles */
.it-header-center-wrapper {
    background-color: #0066cc;
}

.it-brand-title {
    color: #fff !important;
}

.it-brand-tagline {
    color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    list-style: none !important;
}

.breadcrumb-item {
    display: flex !important;
    align-items: center !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block !important;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    color: #6c757d !important;
    content: "/" !important;
}

.breadcrumb-item.active {
    color: #6c757d !important;
}

/* List Page Styles */
.sticky-top {
    top: 20px;
}

#sidebarMenu {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.it-sidenav-list {
    list-style: none;
    padding-left: 0;
}

.anno-section {
    scroll-margin-top: 120px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    color: #0066cc;
    font-weight: 700;
}

.procedimento-item {
    scroll-margin-top: 120px;
    border-left: 4px solid #0066cc !important;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 20px !important;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.procedimento-item:hover {
    transform: translateY(-2px);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Title Truncation Styles */
.title-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.title-expanded {
    display: block;
}

.toggle-title-btn {
    padding: 0;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

/* Detail Page Styles */
.info-label {
    font-weight: 700;
    color: #0066cc;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-value {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.external-link-item {
    border-left: 4px solid #0066cc !important;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 20px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.external-link-item:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.external-link-item a {
    text-decoration: none !important;
}

.external-link-item a:hover .it-list-item-title {
    text-decoration: underline;
    color: #0066cc;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
    .sticky-top {
        position: static;
        margin-bottom: 1rem;
    }

    #sidebarMenu {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .card-container {
        max-width: 900px;
        margin: 0 auto;
    }
}