/* Portal de Transparência - Estilo Melhorado */
.pt-main-container {
    display: flex;
    min-width: 80vw;
    gap: 20px;
    padding: 20px;
    min-height: 80vh;
}

.pt-sidebar-right {
    width: 320px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.pt-sidebar-right h3 {
    font-size: 1.0rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pt-subcategories {
    display: none; /* Todas fechadas ao carregar */
}

.pt-category.open .pt-subcategories {
    display: block; /* Abre quando recebe a classe .open */
}

/* Rotação da seta */
.pt-cat-toggle {
    transition: transform .3s;
}

.pt-category.open .pt-cat-toggle {
    transform: rotate(180deg);
}

.pt-category {
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.pt-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pt-category:hover {
    transform: translateX(5px);
}

.pt-category-title {
    cursor: pointer;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.pt-category-title:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.pt-category-title .category-name {
    flex: 1;
	font-size:15px;
    font-weight: 600;
    color: #2c3e50;
}

.pt-category-title .pt-cat-toggle {
    font-size: 0.5rem;
    transition: transform 0.3s ease;
    color: #7f8c8d;
    margin-left: 10px;
}

.pt-category-title.active .pt-cat-toggle {
    transform: rotate(180deg);
    color: #3498db;
}

.pt-subcategories {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.pt-subcategories li {
    margin: 8px 0;
    animation: fadeInUp 0.5s ease;
}

.pt-subcategories a {
    display: block;
    padding: 12px 20px;
    color: #34495e;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 400;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid transparent;
}

.pt-subcategories a:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: black;
    transform: translateX(5px);
    border-left-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pt-subcategories a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.pt-content-left {
    flex: 1;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.pt-content-left h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 12px;
    margin-top: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#pt-content-area {
    min-height: 300px;
}

.pt-welcome-message {
    text-align: center;
    padding: 50px 30px;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.pt-welcome-message h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 300;
}

.pt-welcome-message p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pt-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    min-width: 120px;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

/* Accordions */
.pt-accordion-container {
    margin-top: 25px;
}

.pt-accordion-item {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.pt-accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pt-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 18px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.pt-accordion-header:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
}

.pt-accordion-header .pt-toggle {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #7f8c8d;
}

.pt-accordion-header.active .pt-toggle {
    transform: rotate(180deg);
    color: #3498db;
}

.pt-accordion-content {
    display: none;
    padding: 25px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    line-height: 1.7;
    animation: fadeInDown 0.5s ease;
}

.pt-accordion-content.active {
    display: block;
}

.pt-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.pt-info-box strong {
    color: #0d47a1;
    font-weight: 600;
}

.pt-no-items {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    margin: 20px 0;
}

.pt-no-cats,
.pt-no-subcats {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 6px;
    margin: 15px 0;
    border: 1px dashed #dee2e6;
}

/* Ícones personalizados */
.pt-icon-svg {
    transition: transform 0.2s ease;
}

.pt-category:hover .pt-icon-svg {
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .pt-main-container {
        flex-direction: column;
        min-width: 100vw;
        padding: 10px;
    }

    .pt-sidebar-right {
        width: 100%;
        max-width: none;
        padding: 20px;
    }

    .pt-category-title {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .pt-subcategories a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .pt-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-item {
        min-width: auto;
        width: 100%;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carregamento */
.pt-loading {
    text-align: center;
    padding: 50px;
    color: #6c757d;
    font-size: 1.2rem;
}

.pt-loading:after {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-left: 15px;
    border: 3px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilo para acordeões internos */
.pt-inner-accordion-container {
    margin-top: 15px;
}

.pt-accordion-item-inner {
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.pt-accordion-item-inner:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pt-accordion-header-inner {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 12px 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pt-accordion-header-inner:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.pt-accordion-content-inner {
    display: none;
    padding: 18px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    line-height: 1.6;
    animation: fadeInDown 0.3s ease;
}

.pt-accordion-content-inner.active {
    display: block;
}

/* Melhorias nos formulários do admin */
.pt-icon-grid {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
}

.pt-icon-option {
    transition: all 0.3s ease;
}

.pt-icon-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tema escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .pt-sidebar-right,
    .pt-content-left {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
        border-color: #34495e;
    }
    
    .pt-category-title {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        color: #ecf0f1;
        border-color: #34495e;
    }
    
    .pt-category-title:hover {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }
    
    .pt-subcategories a {
        background: rgba(52, 73, 94, 0.7);
        color: #ecf0f1;
    }
    
    .pt-subcategories a:hover {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }
}

/* Cabeçalho do menu lateral */
.pt-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pt-btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #0073aa;
    background: #f0f8ff;
    color: #0073aa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.pt-btn:hover {
    background: #0073aa;
    color: white;
}