@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700&family=Open+Sans:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ebf1f2;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Acessibilidade: ocultar texto de forma acessível */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.header {
    background-color: #fff;
    padding: 20px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.logo-img {
    max-width: 250px;
    height: auto;
    width: 100%;
    display: block;
    margin-left: 60px;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.page-title {
    color: #ed3b48;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 15px;
    display: inline-block;
    font-family: 'Barlow', sans-serif;
    background: linear-gradient(to right, #5b8bc4 0%, #5b8bc4 50%, transparent 50%);
    background-size: 100% 4px;
    background-position: bottom;
    background-repeat: no-repeat;
}

.description {
    font-size: 18px;
    color: #607989;
    margin: 40px 0;
    line-height: 1.6;
}

.search-section {
    margin: 40px 0;
}

.search-instruction {
    font-size: 20px;
    font-weight: normal;
    font-style: normal;
    color: #607989;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

.search-instruction-bold {
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
    color: #172833;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

.search-box {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-bottom: 2px solid #999;
    font-size: 20px;
    color: #172833;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
}

.search-input:focus {
    border-bottom-color: #5b8bc4;
    color: #333;
}

.search-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    margin-left: 15px;
    padding: 5px;
}

.search-btn:hover {
    color: #333;
}

.certificates-section {
    margin-top: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #354551;
    margin-bottom: 20px;
    font-family: 'Barlow', sans-serif;
}

.certificate-card {
    border: 2px solid #999;
    border-radius: 8px;
    padding: 25px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.certificate-info h3 {
    font-size: 20px;
    font-weight: bold;
    color: #354551;
    margin-bottom: 8px;
    font-family: 'Barlow', sans-serif;
}

.certificate-course {
    font-size: 20px;
    color: #354551;
    margin-bottom: 5px;
    font-family: 'Barlow', sans-serif;
}

.certificate-date {
    font-size: 20px;
    color: #354551;
    font-family: 'Barlow', sans-serif;
}

.download-btn {
    background-color: transparent;
    border: 2px solid #5b8bc4;
    color: #5b8bc4;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 20px;
    min-width: 112px;
}

.download-btn:hover {
    background-color: #457b9d;
    color: #fff;
}

/* Footer */
.footer {
    background-color: #354551;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 4px solid #5b8bc4;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

.footer-content a {
    color: #7ec8e3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .certificate-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-btn {
        margin-left: 0;
        margin-top: 15px;
    }

    .page-title {
        font-size: 36px;
    }

    .container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
        background-size: 100% 3px;
    }

    .search-instruction,
    .search-instruction-bold {
        font-size: 16px;
    }

    .search-input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .search-btn {
        font-size: 20px;
        margin-left: 10px;
    }

    .certificate-card {
        padding: 15px;
    }

    .certificate-info h3,
    .certificate-course,
    .certificate-date {
        font-size: 16px;
    }

    .download-btn {
        font-size: 12px;
        padding: 8px 15px;
        min-width: 100px;
    }

    .logo-img {
        max-width: 180px;
        margin-left: 0;
    }

    .header {
        padding: 15px 10px;
    }

    .footer-content p {
        font-size: 14px;
    }
}




/* Mensagens de loading e erro */
.loading-message, 
.no-certificates-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    border: 2px solid #999;
}

.no-certificates-message p {
    font-size: 18px;
    color: #607989;
    margin: 10px 0;
    font-family: 'Open Sans', sans-serif;
}

.no-certificates-subtitle {
    font-size: 14px;
    color: #999;
}

.certificates-container {
    margin-top: 20px;
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para as mensagens de feedback */
.message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para o título da seção quando escondido */
.certificates-section[style*="display: none"] .section-title {
    display: none;
}
