/* Estilos para a página de Guias */

/* Header da página */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #E5E7EB;
}

.header-content h1 {
    margin: 0;
    color: #1F2937;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content h1 i {
    color: #1E3A8A;
}

.header-content p {
    margin: 8px 0 0 0;
    color: #6B7280;
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Filtros */
.filters-section {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #E5E7EB;
}

.filters-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #1F2937;
    transition: border-color 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Estatísticas */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: #1E3A8A;
}

.stat-icon.hardware {
    background: #DC2626;
}

.stat-icon.software {
    background: #059669;
}

.stat-icon.network {
    background: #7C3AED;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* Seção de Guias */
.guides-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.section-header h3 {
    margin: 0;
    color: #1F2937;
    font-size: 18px;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Grid de Guias */
.guides-grid {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.guide-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1E3A8A;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.guide-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.guide-category {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.guide-category.hardware {
    background: #FEE2E2;
    color: #DC2626;
}

.guide-category.software {
    background: #DCFCE7;
    color: #059669;
}

.guide-category.rede {
    background: #EDE9FE;
    color: #7C3AED;
}

.guide-category.configuracao {
    background: #FEF3C7;
    color: #D97706;
}

.guide-category.manutencao {
    background: #DBEAFE;
    color: #1E40AF;
}

.guide-category.troubleshooting {
    background: #F3E8FF;
    color: #9333EA;
}

.guide-category.outro {
    background: #F3F4F6;
    color: #6B7280;
}

.guide-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6B7280;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-meta i {
    color: #9CA3AF;
}

.guide-problem {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.guide-tag {
    background: #E5E7EB;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #F3F4F6;
}

.guide-author {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-actions {
    display: flex;
    gap: 8px;
}

.guide-action {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-action.view {
    background: #DBEAFE;
    color: #1E40AF;
}

.guide-action.edit {
    background: #FEF3C7;
    color: #D97706;
}

.guide-action.delete {
    background: #FEE2E2;
    color: #DC2626;
}

.guide-action:hover {
    transform: scale(1.05);
}

/* Loading */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 16px;
}

.loading-placeholder i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
    width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.modal-header h3 {
    margin: 0;
    color: #1F2937;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6B7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #E5E7EB;
    color: #374151;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
}

/* Formulário */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #1F2937;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

/* Upload de arquivos */
.file-upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #1E3A8A;
    background: #F8FAFC;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder i {
    font-size: 32px;
    color: #9CA3AF;
    margin-bottom: 10px;
    display: block;
}

.upload-placeholder p {
    margin: 0 0 5px 0;
    color: #374151;
    font-weight: 500;
}

.upload-placeholder small {
    color: #6B7280;
    font-size: 12px;
}

.file-preview {
    margin-top: 15px;
    display: none;
}

.file-preview.show {
    display: block;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item i {
    color: #6B7280;
}

.file-item span {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.file-item button {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
}

/* Botões */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: #1E3A8A;
    color: white;
}

.btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6B7280;
    color: white;
}

.btn-secondary:hover {
    background: #4B5563;
}

.btn-outline {
    background: transparent;
    color: #6B7280;
    border: 1px solid #D1D5DB;
}

.btn-outline:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.btn-danger {
    background: #DC2626;
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #F3F4F6;
    border-color: #9CA3AF;
}

.pagination-btn.active {
    background: #1E3A8A;
    color: white;
    border-color: #1E3A8A;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Detalhes do Guia */
.guide-details {
    max-width: none;
}

.guide-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.guide-details-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    flex: 1;
}

.guide-details-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6B7280;
}

.guide-details-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-details-section {
    margin-bottom: 25px;
}

.guide-details-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-details-section h4 i {
    color: #1E3A8A;
}

.guide-details-content {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1E3A8A;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.guide-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.attachment-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.attachment-item:hover {
    border-color: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attachment-item i {
    font-size: 24px;
    color: #6B7280;
    margin-bottom: 8px;
    display: block;
}

.attachment-item span {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    word-break: break-word;
}

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

/* ====== DARK MODE - Guia ====== */
body[data-theme="dark"] .page-header {
    border-bottom-color: #3a3939 !important;
}

body[data-theme="dark"] .header-content h1 {
    color: var(--page-h1-cor, #8a8b8b) !important;
}

body[data-theme="dark"] .header-content p {
    color: var(--page-p-color, #ddd9d9) !important;
}

body[data-theme="dark"] .filters-section {
    background: var(--filtro-fundo, rgb(26, 25, 25)) !important;
    border-color: #3a3939 !important;
}

body[data-theme="dark"] .filter-group label {
    color: var(--color-label-filtro, #e9e9e9) !important;
}

body[data-theme="dark"] .stat-card {
    background: var(--fundo-stat-card, rgb(26, 25, 25)) !important;
    border-color: #3a3939 !important;
}

body[data-theme="dark"] .stat-number {
    color: var(--color-stat-number, #c9c9c9) !important;
}

body[data-theme="dark"] .stat-label {
    color: var(--color-stat-content, #e2e2e2) !important;
}

body[data-theme="dark"] .guides-section {
    background: var(--fundo-tabela, rgb(26, 25, 25)) !important;
    border-color: #3a3939 !important;
}

body[data-theme="dark"] .section-header {
    background: var(--fundo-tabela-th, rgb(29, 28, 28)) !important;
    border-bottom-color: #3a3939 !important;
}

body[data-theme="dark"] .section-header h3 {
    color: var(--color-stat-number, #c9c9c9) !important;
}

body[data-theme="dark"] .guide-card {
    background: var(--fundo-tabela-th, rgb(29, 28, 28)) !important;
    border-color: #3a3939 !important;
}

body[data-theme="dark"] .guide-card:hover {
    border-color: #806902 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
}

body[data-theme="dark"] .guide-title {
    color: var(--color-stat-number, #c9c9c9) !important;
}

body[data-theme="dark"] .guide-meta {
    color: #aaaaaa !important;
}

body[data-theme="dark"] .guide-problem {
    color: var(--page-p-color, #ddd9d9) !important;
}

body[data-theme="dark"] .guide-tag {
    background: #3a3939 !important;
    color: #e4e4e4 !important;
}

body[data-theme="dark"] .guide-footer {
    border-top-color: #3a3939 !important;
}

body[data-theme="dark"] .guide-author {
    color: #aaaaaa !important;
}

body[data-theme="dark"] .guide-action.view {
    background: #0c2340 !important;
    color: #93c5fd !important;
}

body[data-theme="dark"] .guide-action.edit {
    background: #2d1f0c !important;
    color: #fbbf24 !important;
}

body[data-theme="dark"] .guide-action.delete {
    background: #2d0c0c !important;
    color: #fca5a5 !important;
}

body[data-theme="dark"] .loading-placeholder {
    color: #888888 !important;
}

body[data-theme="dark"] .modal-content {
    background: var(--fundo-modal-content, rgb(36, 35, 35)) !important;
}

body[data-theme="dark"] .modal-header {
    background: var(--fundo--modal-header, rgb(50, 49, 49)) !important;
    border-bottom-color: #3a3939 !important;
}

body[data-theme="dark"] .modal-header h3 {
    color: var(--color-modal-h3, #dfdfdf) !important;
}

body[data-theme="dark"] .modal-footer {
    background: var(--fundo--modal-header, rgb(50, 49, 49)) !important;
    border-top-color: #3a3939 !important;
}

body[data-theme="dark"] .modal-close {
    color: #aaaaaa !important;
}

body[data-theme="dark"] .modal-close:hover {
    background: #3a3939 !important;
    color: #e4e4e4 !important;
}

body[data-theme="dark"] .form-group label {
    color: var(--color-stat-content, #e2e2e2) !important;
}

body[data-theme="dark"] .guide-category.hardware { background: #2d0c0c !important; color: #fca5a5 !important; }
body[data-theme="dark"] .guide-category.software { background: #0c2d18 !important; color: #6ee7b7 !important; }
body[data-theme="dark"] .guide-category.rede { background: #1e0c2d !important; color: #c4b5fd !important; }
body[data-theme="dark"] .guide-category.configuracao { background: #2d1f0c !important; color: #fbbf24 !important; }
body[data-theme="dark"] .guide-category.manutencao { background: #0c2340 !important; color: #93c5fd !important; }
body[data-theme="dark"] .guide-category.troubleshooting { background: #1a0c2d !important; color: #d8b4fe !important; }
body[data-theme="dark"] .guide-category.outro { background: #2a2929 !important; color: #aaaaaa !important; }

/* Estilos para modal de detalhes no modo escuro */
body[data-theme="dark"] .modal-body {
    color: var(--tabela-color-td, #e4e4e4) !important;
    background: var(--fundo-modal-content, rgb(36, 35, 35)) !important;
}

body[data-theme="dark"] .guide-details {
    color: var(--tabela-color-td, #e4e4e4) !important;
}

body[data-theme="dark"] .guide-details-header {
    border-bottom-color: #3a3939 !important;
}

body[data-theme="dark"] .guide-details-title {
    color: var(--color-modal-h3, #dfdfdf) !important;
}

body[data-theme="dark"] .guide-details-meta {
    color: var(--color-stat-content, #e2e2e2) !important;
}

body[data-theme="dark"] .guide-details-meta span {
    color: var(--color-stat-content, #e2e2e2) !important;
}

body[data-theme="dark"] .guide-details-meta i {
    color: var(--color-stat-content, #e2e2e2) !important;
}

body[data-theme="dark"] .guide-details-section h4 {
    color: var(--color-modal-h3, #dfdfdf) !important;
}

body[data-theme="dark"] .guide-details-section h4 i {
    color: #8b5cf6 !important;
}

body[data-theme="dark"] .guide-details-content {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--tabela-color-td, #e4e4e4) !important;
    border-left-color: #8b5cf6 !important;
}

body[data-theme="dark"] .guide-tags {
    color: var(--tabela-color-td, #e4e4e4) !important;
}

body[data-theme="dark"] .guide-tag {
    background: #3a3939 !important;
    color: #e4e4e4 !important;
}

body[data-theme="dark"] .attachment-item {
    background: var(--fundo-tabela-th, rgb(29, 28, 28)) !important;
    border-color: #3a3939 !important;
}

body[data-theme="dark"] .attachment-item:hover {
    border-color: #8b5cf6 !important;
}

body[data-theme="dark"] .attachment-item i {
    color: #aaaaaa !important;
}

body[data-theme="dark"] .attachment-item span {
    color: var(--tabela-color-td, #e4e4e4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .guide-details-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .guide-details-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 24px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .guide-card {
        padding: 15px;
    }
    
    .guide-title {
        font-size: 14px;
    }
    
    .guide-actions {
        flex-direction: column;
        gap: 4px;
    }
}

/* Pastas protegidas — multi-selecção e estado desbloqueado */
.pp-bc-user-multiselect {
    min-height: 220px;
    width: 100%;
    font-size: 14px;
}

.pp-bc-unlocked-bar {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(23, 201, 100, 0.12);
    border: 1px solid rgba(23, 201, 100, 0.35);
    margin-bottom: 16px;
}

body[data-theme="dark"] .pp-bc-unlocked-bar {
    background: rgba(23, 201, 100, 0.15);
    border-color: rgba(23, 201, 100, 0.4);
}

.pp-bc-unlocked-msg {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: inherit;
}

.pp-bc-unlocked-msg i {
    margin-right: 8px;
    color: #17c964;
}

/* Lista de ficheiros dentro da pasta protegida */
.pp-bc-ficheiros-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 8px;
}

.pp-bc-ficheiros-header h4 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 200px;
    font-size: 1.05rem;
}

.pp-bc-ficheiros-contagem {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.pp-bc-subtitulo {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #374151;
}

.pp-bc-lista-ficheiros {
    min-height: 48px;
}

.pp-bc-ficheiros-loading,
.pp-bc-ficheiros-vazio {
    padding: 14px;
    border-radius: 8px;
    background: #F9FAFB;
    border: 1px dashed #E5E7EB;
}

body[data-theme="dark"] .pp-bc-ficheiros-contagem {
    color: #94a3b8;
}

body[data-theme="dark"] .pp-bc-subtitulo {
    color: #e2e8f0;
}

body[data-theme="dark"] .pp-bc-ficheiros-loading,
body[data-theme="dark"] .pp-bc-ficheiros-vazio {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.25);
}

ul.pp-bc-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pp-bc-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
}

body[data-theme="dark"] .pp-bc-file-row {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

.pp-bc-file-icon {
    color: #1E3A8A;
    font-size: 18px;
}

body[data-theme="dark"] .pp-bc-file-icon {
    color: #93c5fd;
}

.pp-bc-file-meta {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-bc-file-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}

.pp-bc-file-sub {
    font-size: 12px;
    color: #6B7280;
}

body[data-theme="dark"] .pp-bc-file-sub {
    color: #94a3b8;
}

.pp-bc-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
