/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter Tight', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #003C2D;
    line-height: 1.6;
    min-height: 100vh;
}

/* Utilitários */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.title {
    font-size: 2rem;
    font-weight: 600;
    color: #003C2D;
    margin: 0;
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Form container */
.form-container {
    background: #FFFFFF;
    border: 2px solid #F7F7F7;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 60, 45, 0.08);
}

.protocolo-form {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #003C2D;
    margin-bottom: 4px;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.protocolo-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #CCCCCC;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #003C2D;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.protocolo-input:focus {
    outline: none;
    border-color: #00E12D;
    box-shadow: 0 0 0 3px rgba(0, 225, 45, 0.1);
}

.protocolo-input::placeholder {
    color: #7A7A7A;
}

.consultar-btn {
    padding: 16px 32px;
    background: #00E12D;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.consultar-btn:hover:not(:disabled) {
    background: #00E144;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 225, 45, 0.3);
}

.consultar-btn:active:not(:disabled) {
    transform: translateY(0);
}

.consultar-btn:disabled {
    background: #CCCCCC;
    color: #7A7A7A;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Resultado */
.resultado {
    background: #FFFFFF;
    border: 2px solid #F7F7F7;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 60, 45, 0.08);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.resultado.empty {
    color: #7A7A7A;
    font-style: italic;
}

.resultado.empty::before {
    content: "Digite um protocolo e clique em Consultar para ver o resultado.";
}

.resultado-content {
    width: 100%;
}

.resultado-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #003C2D;
    line-height: 1.5;
}

.resultado-message strong {
    font-weight: 600;
    color: #00661C;
}

.documento-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #00E12D;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
}

.documento-btn:hover {
    background: #00E144;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 225, 45, 0.3);
}

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

.erro-message {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    color: #003C2D;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F7F7F7;
    border-top: 4px solid #00E12D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-container,
    .resultado {
        padding: 20px;
    }
    
    .logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.25rem;
    }
    
    .protocolo-input,
    .consultar-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .form-container,
    .resultado {
        padding: 16px;
    }
}

