/* ============================================
   UNIFICADOR DE ETIQUETAS - ESTILOS DA APLICAÇÃO
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0066FF 0%, #00B894 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* Títulos com Roboto Condensed */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #0066FF 0%, #00B894 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.header-top {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

.header-logo-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.header-logo-link {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-logo-link:hover {
    transform: scale(1.05);
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.3;
}

.main-content {
    padding: 40px 30px;
}

/* ============================================
   ÁREA DE UPLOAD
   ============================================ */

.upload-section {
    margin-bottom: 30px;
}

.dropzone {
    border: 4px dashed #0066FF;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8faf7 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.dropzone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropzone:hover {
    border-color: #00B894;
    background: linear-gradient(135deg, #e8faf7 0%, #d4f4ed 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.dropzone:hover::before {
    opacity: 1;
}

.dropzone.dragover {
    border-color: #00B894;
    border-style: solid;
    background: linear-gradient(135deg, #d4f4ed 0%, #b8ede0 100%);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.3);
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-width: 4px;
    }
    50% {
        border-width: 6px;
    }
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.upload-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    width: 80px;
    height: 80px;
    color: #0066FF;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.upload-icon-wrapper:hover .upload-icon {
    color: #00B894;
    transform: translateY(-5px);
}

.upload-icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.dropzone-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #0066FF;
    margin: 0;
    line-height: 1.2;
}

.dropzone-text {
    font-size: 1.3em;
    color: #333;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.dropzone-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}

.dropzone-divider::before,
.dropzone-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

.dropzone-divider span {
    padding: 0 15px;
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.btn-select-file {
    background: linear-gradient(135deg, #0066FF 0%, #00B894 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-select-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-select-file:active {
    transform: translateY(0);
}

.btn-select-file .icon {
    width: 1.2em;
    height: 1.2em;
}

.hint {
    font-size: 0.95em;
    color: #666;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
}

.file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 3em;
    height: 3em;
    display: block;
    color: currentColor;
}

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

.file-size {
    font-size: 0.9em;
    color: #666;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #0066FF 0%, #00B894 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

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

.btn-download {
    background: linear-gradient(135deg, #00B894 0%, #1DD1A1 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.4);
}

/* ============================================
   BARRA DE PROGRESSO
   ============================================ */

.progress-section {
    margin: 30px 0;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0066FF 0%, #00B894 100%);
    border-radius: 15px;
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.progress-text {
    text-align: center;
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* ============================================
   MENSAGENS DE ERRO
   ============================================ */

.error-message {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.error-icon {
    font-size: 2em;
}

.error-message p {
    color: #c33;
    font-weight: 500;
    font-size: 1.1em;
    line-height: 1.3;
}

/* ============================================
   SEÇÃO DE RESULTADO
   ============================================ */

.result-section {
    text-align: center;
    padding: 30px 0;
}

.result-section h2 {
    color: #00B894;
    font-size: 2em;
    margin-bottom: 15px;
}

.success-message {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.3;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdf-preview {
    margin-top: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.pdf-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* ============================================
   RODAPÉ
   ============================================ */

.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 6px;
}

.footer-link:hover {
    color: white;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.footer-link-donate {
    background: linear-gradient(135deg, #0066FF 0%, #00B894 100%);
    color: white !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-link-donate:hover {
    background: linear-gradient(135deg, #0052CC 0%, #009973 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    opacity: 1 !important;
}

.footer-link-donate .icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 4px;
}

.footer-disclaimer {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-developer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-developer-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-developer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-developer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .dropzone {
        padding: 50px 20px;
    }

    /* Ícones mantêm o mesmo tamanho do desktop */

    .dropzone-title {
        font-size: 1.5em;
    }

    .dropzone-text {
        font-size: 1.1em;
    }

    .btn-select-file {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .main-content {
        padding: 30px 20px;
    }

    .dropzone {
        padding: 40px 20px;
    }

    .result-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .footer {
        padding: 40px 15px 25px;
    }

    .footer-logo-img {
        height: 60px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-link-donate {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

