/* Plugin Rastreio - Estilos */

.rastreio-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: #efefef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #c1c1c1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rastreio-titulo {
    text-align: center !important;
    color: #2c3e50 !important;
    margin-bottom: 25px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    border-bottom: 0px !important;
    padding-bottom: 10px !important;
}

.rastreio-form {
    margin-bottom: 20px;
}

.rastreio-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rastreio-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.rastreio-input:focus {
    outline: none;
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.rastreio-input::placeholder {
    color: #95a5a6;
}

.rastreio-button {
    padding: 14px 24px !important;
    background: linear-gradient(135deg, #ff5006, #ff824d) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    white-space: nowrap !important;
}

.rastreio-button:hover {
    background: linear-gradient(135deg, #ff824d, #ff5006) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 80, 6, 0.3) !important;
    color: white !important;
}

.rastreio-button:active {
    transform: translateY(0);
}

.rastreio-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rastreio-resultado {
    margin-top: 20px;
    min-height: 50px;
}

.rastreio-sucesso {
    background: linear-gradient(135deg, #57db7d, #195f49) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    text-align: center !important;
    animation: slideIn 0.5s ease !important;
}

.rastreio-sucesso h4 {
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: white !important;
}

.rastreio-sucesso p {
    margin: 10px 0 20px 0 !important;
    font-size: 18px !important;
    opacity: 0.9 !important;
    color: white !important;
}

.rastreio-link-botao {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.rastreio-link-botao:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
}

/* Garantir que o botão "Rastrear" e "Acompanhar Entrega" fiquem brancos no modo escuro */

.rastreio-erro {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    animation: shake 0.5s ease;
}

.rastreio-info {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.rastreio-loading {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    animation: pulse 1.5s infinite;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* Responsividade */
@media (max-width: 600px) {
    .rastreio-container {
        margin: 10px;
        padding: 20px;
    }
    
    .rastreio-input-group {
        flex-direction: column;
    }
    
    .rastreio-input,
    .rastreio-button {
        width: 100%;
        min-width: auto;
    }
    
    .rastreio-titulo {
        font-size: 20px;
    }
}

/* Tema escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .rastreio-container {
        background: #efefef;
        border-color: #c1c1c1;
        color: #ecf0f1;
    }
    
    .rastreio-titulo {
        color: #ecf0f1;
        border-bottom-color: #3498db;
    }
    
    .rastreio-input {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    .rastreio-input:focus {
        background-color: #3d566e;
    }
    
    .rastreio-input::placeholder {
        color: #95a5a6;
    }
}