/* Portal da Transparência - Estilos Específicos */

:root {
    --pt-primary: #0d6efd;
    --pt-dark-blue: #0a2540;
    --pt-cyan: #0dcaf0;
    --pt-light-blue: #e7f1ff;
    --pt-white: #ffffff;
    --pt-gray-light: #f8f9fa;
    --pt-gray-medium: #e9ecef;
    --pt-gray-dark: #495057;
    --pt-success: #198754;
    --pt-warning: #ffc107;
    --pt-danger: #dc3545;
    --pt-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --pt-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --pt-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --pt-radius-md: 8px;
    --pt-radius-lg: 12px;
    --pt-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.transparencia-module {
    font-family: 'Inter', sans-serif;
    background-color: var(--pt-gray-light);
    color: var(--pt-gray-dark);
}

/* Topbar Institucional */
.pt-topbar {
    background-color: var(--pt-dark-blue);
    color: var(--pt-white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.pt-topbar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.pt-topbar a:not(.btn):hover {
    color: var(--pt-white);
}

.pt-topbar .btn-outline-light:hover {
    color: var(--pt-dark-blue) !important;
    background-color: var(--pt-white);
    border-color: var(--pt-white);
}

/* Hero Section */
.pt-hero {
    background: linear-gradient(135deg, var(--pt-dark-blue) 0%, var(--pt-primary) 100%);
    color: var(--pt-white);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.pt-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: var(--pt-gray-light);
    transform: skewY(-2deg);
    z-index: 1;
}

.pt-hero-content {
    position: relative;
    z-index: 2;
}

/* Search Bar */
.pt-search-wrapper {
    background: var(--pt-white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--pt-shadow-lg);
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(30px);
    position: relative;
    z-index: 3;
}

.pt-search-input {
    border: none;
    box-shadow: none !important;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    flex-grow: 1;
}

.pt-search-btn {
    border-radius: 50px !important;
    padding: 12px 30px;
    font-weight: 600;
}

/* Filters Section */
.pt-filters-section {
    background-color: var(--pt-white);
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--pt-gray-medium);
    margin-top: 20px;
}

.pt-filter-select {
    border-radius: var(--pt-radius-md);
    border: 1px solid var(--pt-gray-medium);
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--pt-gray-dark);
    box-shadow: var(--pt-shadow-sm);
    transition: var(--pt-transition);
}

.pt-filter-select:focus {
    border-color: var(--pt-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Quick Shortcuts */
.pt-shortcut-btn {
    background-color: var(--pt-white);
    border: 1px solid var(--pt-gray-medium);
    border-radius: 50px;
    padding: 8px 20px;
    color: var(--pt-dark-blue);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--pt-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--pt-shadow-sm);
}

.pt-shortcut-btn:hover {
    background-color: var(--pt-light-blue);
    border-color: var(--pt-primary);
    color: var(--pt-primary);
    transform: translateY(-2px);
}

/* Cards Grid */
.pt-card {
    background: var(--pt-white);
    border-radius: var(--pt-radius-lg);
    border: 1px solid var(--pt-gray-medium);
    padding: 25px;
    height: 100%;
    transition: var(--pt-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pt-shadow-sm);
    text-decoration: none;
    color: inherit;
}

.pt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pt-shadow-md);
    border-color: var(--pt-light-blue);
}

.pt-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--pt-light-blue);
    color: var(--pt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--pt-transition);
}

.pt-card:hover .pt-card-icon {
    background-color: var(--pt-primary);
    color: var(--pt-white);
}

.pt-card-title {
    font-weight: 700;
    color: var(--pt-dark-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pt-card-desc {
    color: var(--pt-gray-dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pt-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--pt-gray-medium);
}

.pt-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.pt-badge-external {
    background-color: var(--pt-gray-light);
    color: var(--pt-gray-dark);
    border: 1px solid var(--pt-gray-medium);
}

.pt-badge-status-ativo {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--pt-success);
}

.pt-badge-status-manutencao {
    background-color: rgba(255, 193, 7, 0.1);
    color: #d39e00;
}

.pt-card-action {
    color: var(--pt-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--pt-transition);
}

.pt-card:hover .pt-card-action {
    gap: 8px;
}

/* Category Sections */
.pt-category-section {
    margin-bottom: 60px;
}

.pt-category-title {
    font-weight: 700;
    color: var(--pt-dark-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-category-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background-color: var(--pt-primary);
    border-radius: 2px;
}

/* Help Block */
.pt-help-block {
    background-color: var(--pt-dark-blue);
    color: var(--pt-white);
    border-radius: var(--pt-radius-lg);
    padding: 40px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.pt-help-block::before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.pt-help-content {
    position: relative;
    z-index: 1;
}

/* Empty State */
.pt-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--pt-white);
    border-radius: var(--pt-radius-lg);
    border: 1px dashed var(--pt-gray-medium);
}

.pt-empty-icon {
    font-size: 4rem;
    color: var(--pt-gray-medium);
    margin-bottom: 20px;
}

/* Footer */
.pt-footer {
    background-color: var(--pt-white);
    border-top: 1px solid var(--pt-gray-medium);
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

/* Floating Button */
.pt-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--pt-primary);
    color: var(--pt-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--pt-shadow-md);
    z-index: 1000;
    transition: var(--pt-transition);
    text-decoration: none;
}

.pt-floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--pt-shadow-lg);
    color: var(--pt-white);
    background-color: var(--pt-dark-blue);
}

/* Accessibility */
.pt-high-contrast {
    --pt-primary: #ffff00;
    --pt-dark-blue: #000000;
    --pt-cyan: #00ffff;
    --pt-light-blue: #000000;
    --pt-white: #000000;
    --pt-gray-light: #000000;
    --pt-gray-medium: #ffffff;
    --pt-gray-dark: #ffffff;
    --pt-success: #00ff00;
    --pt-warning: #ffff00;
    --pt-danger: #ff0000;
}

.pt-high-contrast body {
    background-color: #000000;
    color: #ffffff;
}

.pt-high-contrast .pt-card,
.pt-high-contrast .pt-search-wrapper,
.pt-high-contrast .pt-filters-section,
.pt-high-contrast .pt-shortcut-btn {
    background-color: #000000;
    border-color: #ffffff;
    color: #ffffff;
}

.pt-high-contrast .pt-card-title,
.pt-high-contrast .pt-category-title {
    color: #ffff00;
}

.pt-high-contrast .pt-card-icon {
    background-color: #000000;
    color: #ffff00;
    border: 1px solid #ffff00;
}

.pt-high-contrast .pt-badge-external {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
}
