.calculator-content {
    display: none;
}
.calculator-content.active {
    display: block;
}
.sidebar-item.active {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}
.ad-space {
    background: repeating-linear-gradient(
        45deg,
        #f3f4f6,
        #f3f4f6 10px,
        #e5e7eb 10px,
        #e5e7eb 20px
    );
    /* Dimensões fixas para prevenir Layout Shift (CLS) */
    min-height: 8rem; /* 128px - h-32 */
    max-height: 16rem; /* 256px - h-64 */
}

/* Dimensões específicas para diferentes tipos de ads */
.ad-space.ad-sidebar {
    min-height: 8rem;  /* 128px mobile */
    max-height: 16rem; /* 256px desktop */
}

.ad-space.ad-content {
    min-height: 8rem;  /* 128px mobile */
    max-height: 10rem; /* 160px desktop */
}

.ad-space.ad-bottom {
    min-height: 6rem;  /* 96px */
    max-height: 6rem;  /* 96px fixo */
}

/* Responsive adjustments */
@media (min-width: 1024px) {
    .ad-space.ad-sidebar {
        min-height: 16rem; /* 256px desktop */
    }
    .ad-space.ad-content {
        min-height: 10rem; /* 160px desktop */
    }
}

/* Footer Styles */
footer {
    margin-top: auto;
    position: relative;
    z-index: 20;
}

/* Toggle buttons */
.toggle-btn {
    color: #6b7280;
    background: transparent;
}

.toggle-btn.active {
    color: #ffffff;
    background: #3b82f6;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Calculator cards */
.calculator-card {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.calculator-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer a:hover {
    text-decoration: none;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr;
    }
    
    footer .space-x-6 > * + * {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Layout adjustments for footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex.min-h-\[calc\(100vh-4rem\)\] {
    flex: 1;
    min-height: auto;
}

/* Ensure footer is visible */
footer {
    flex-shrink: 0;
}

/* Category styles for sidebar */
.category-header {
    transition: all 0.2s ease;
}

.category-arrow {
    transition: transform 0.2s ease;
}

.category-items {
    transition: all 0.3s ease;
}

/* Enhanced sidebar item active state for categories */
.sidebar-item.active {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    margin-left: 1.5rem !important;
    border-left: 3px solid #60a5fa;
}

.sidebar-item.active i {
    color: white !important;
}

.sidebar-item.active span {
    color: white !important;
}

/* Category home cards */
.home-category-title {
    grid-column: 1 / -1;
}

/* Responsive adjustments for categories */
@media (max-width: 1024px) {
    .home-category-title {
        margin-top: 1rem;
    }
    
    .home-category-title:first-child {
        margin-top: 0;
    }
}

/* Breadcrumbs styles */
.breadcrumbs {
    padding: 0.75rem 0;
}

.breadcrumbs ol {
    flex-wrap: wrap;
}

.breadcrumbs a {
    text-decoration: none;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
}

.breadcrumbs a:hover {
    background-color: #f3f4f6;
    text-decoration: none;
}

.breadcrumbs span {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.breadcrumbs i.fa-chevron-right {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Responsive breadcrumbs */
@media (max-width: 640px) {
    .breadcrumbs {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .breadcrumbs ol {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .breadcrumbs i {
        font-size: 0.7rem;
    }
    
    .breadcrumbs .mx-2 {
        margin-left: 0.375rem;
        margin-right: 0.375rem;
    }
}
