/* CSS Dedicado para a seção de Downloads do Acompanhamento */

.download-section-container {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    border: 1px solid #eef2f7;
    border-left: 5px solid #e74c3c;
    /* Barra vermelha que acompanha toda a altura */
    overflow: hidden;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.download-header {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.download-header:hover {
    background-color: #f1f3f5;
    padding-left: 30px;
    /* Pequena animação no hover */
}

/* Estado ativo se usarmos controle via JS/CSS */
.download-header.active {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.download-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-title i.icon-main {
    color: #e74c3c;
    font-size: 1.4rem;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.download-icon-toggle {
    color: #adb5bd;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Rotação se o painel estiver aberto */
.panel-collapse.in~.download-header .download-icon-toggle,
.download-header[aria-expanded="true"] .download-icon-toggle {
    transform: rotate(180deg);
}

.download-list-wrapper {
    background-color: #fff;
    padding: 10px 0;
}

.download-list-item {
    list-style: none;
    padding: 15px 25px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.download-list-item:last-child {
    border-bottom: none;
}

.download-list-item:hover {
    background-color: #fafbfc;
    transform: translateX(5px);
}

.download-link {
    text-decoration: none !important;
    color: #555;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
}

.download-link:hover {
    color: #2c3e50;
}

.file-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #e74c3c;
    /* Cor de PDF */
}

.file-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: #333;
}

.file-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: 2px;
}

.download-action {
    background-color: #f1f8ff;
    color: #0366d6;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.download-list-item:hover .download-action {
    background-color: #0366d6;
    color: #fff;
    box-shadow: 0 2px 5px rgba(3, 102, 214, 0.3);
}