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

body {
s    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

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

.logo-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.main-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.card-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card-header p {
    color: #6c757d;
    font-size: 1rem;
}

.card-body {
    padding: 30px;
}

/* Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Buttons */
.btn-primary {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Tracking Card */
.tracking-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.tracking-header {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.tracking-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tracking-header p {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 600;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    background: #f8f9fa;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.progress-step.active .step-number {
    background: #ffc107;
    color: #212529;
    animation: pulse 2s infinite;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    max-width: 80px;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: #2c3e50;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Package Details */
.package-details {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.package-details h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: #6c757d;
    font-weight: 500;
}

.detail-row .value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Latest Updates */
.latest-updates {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.latest-updates h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.update-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.update-icon {
    color: #856404;
    font-size: 1.5rem;
    margin-top: 5px;
}

.update-content h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.update-content p {
    color: #856404;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-pay {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-pay:hover {
    background: #357ABD;
    transform: translateY(-1px);
}

.payment-note {
    font-size: 0.9rem;
    color: #856404;
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    padding: 20px 30px;
    text-align: center;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #4A90E2;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #6c757d;
    font-weight: 600;
}

/* Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 1001;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

.message.info {
    background: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .progress-step {
        flex: 0 0 45%;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row .value {
        text-align: left;
        max-width: 100%;
    }
    
    .update-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Estilos para a página de rastreamento estilo Correios */
.correios-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    z-index: 1000;
    overflow-y: auto;
    display: none;
    font-family: Arial, sans-serif;
}

/* Header dos Correios */
.correios-header {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-image {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.correios-logo p {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.data-atualizacao-header {
    font-size: 12px;
    margin-top: 8px !important;
    opacity: 0.8;
    font-style: italic;
}

/* Conteúdo principal */
.correios-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tracking-header {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #003d82;
}

.tracking-header h2 {
    color: #003d82;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.tracking-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-label {
    font-weight: 600;
    color: #666;
}

.code-value {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #003d82;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Alerta de status */
.status-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    color: #e17055;
    font-size: 24px;
}

.alert-content h3 {
    color: #856404;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.alert-content p {
    color: #856404;
    margin: 0;
    line-height: 1.4;
}

/* Detalhes do objeto */
.object-details {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.object-details h3 {
    color: #003d82;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.details-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.highlight {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.detail-row .label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.detail-row .value {
    color: #212529;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

.detail-row.highlight .value {
    color: #003d82;
    font-weight: 700;
    font-size: 16px;
}

/* Timeline de rastreamento */
.tracking-timeline {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tracking-timeline h3 {
    color: #003d82;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #fdcb6e;
}

.timeline-item.current {
    border-left-color: #e17055;
    background: #fff5f5;
}

.timeline-date {
    font-weight: 600;
    color: #666;
    min-width: 100px;
    font-size: 14px;
}

.timeline-status strong {
    color: #e17055;
    display: block;
    margin-bottom: 5px;
}

.timeline-status p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Seção de pagamento */
.payment-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #fdcb6e;
}

.payment-info h3 {
    color: #003d82;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.tax-amount {
    font-size: 24px;
    color: #e17055;
    margin: 10px 0;
    text-align: center;
}

.tax-amount strong {
    font-weight: 700;
}

.tax-description {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.btn-pagar-correios {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.btn-pagar-correios:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 130, 0.4);
}

.disclaimer-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.disclaimer {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.disclaimer i {
    color: #003d82;
    margin-top: 2px;
}

/* Botões de ação */
.action-buttons {
    text-align: center;
    margin-top: 20px;
}

.btn-nova-consulta {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nova-consulta:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Estilos para seção PIX */
.pix-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.pix-header {
    text-align: center;
    margin-bottom: 25px;
}

.pix-header h3 {
    color: #003d82;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pix-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.pix-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.qr-code-container {
    text-align: center;
}

#qr-code {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin-bottom: 15px;
    display: inline-block;
}

.qr-instruction {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Informações do PIX */
.pix-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.pix-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    color: #007bff;
    font-size: 14px;
    word-break: break-all;
}

/* Responsividade para informações do PIX */
@media (max-width: 768px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-value {
        font-size: 13px;
    }
}

.pix-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pix-info h4,
.pix-copy-section h4 {
    color: #003d82;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.pix-data {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pix-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.pix-row:last-child {
    border-bottom: none;
}

.pix-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.pix-value {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.copy-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.pix-code-text {
    flex: 1;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    background: white;
    resize: none;
    height: 80px;
}

.btn-copy {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background: #218838;
    transform: translateY(-1px);
}

.copy-instruction {
    color: #666;
    font-size: 12px;
    margin: 0;
    font-style: italic;
}

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

.btn-voltar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voltar:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-confirmar {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-confirmar:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Responsividade para PIX */
@media (max-width: 768px) {
    .pix-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pix-actions {
        flex-direction: column;
    }
    
    .copy-container {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
}

/* Seção PIX */
.pix-section {
    display: none;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 500px;
}

.pix-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.pix-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.pix-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pix-payment-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pix-qr-section {
    text-align: center;
    width: 100%;
}

.pix-qr-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    margin-bottom: 20px;
    min-height: 220px;
}

.pix-copy-section {
    width: 100%;
    text-align: center;
}

.pix-copy-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.copy-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.pix-code-text {
    width: 100%;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: white;
    resize: none;
    min-height: 100px;
    text-align: center;
}

.btn-copy {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.copy-instruction {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 15px;
}

.pix-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.btn-voltar {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voltar:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-confirmar {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-confirmar:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Responsividade para a página de encomenda */
@media (max-width: 768px) {
    .encomenda-container {
        padding: 15px;
    }
    
    .encomenda-card {
        padding: 20px;
        margin: 0 10px;
    }
    
    .logo-imile {
        font-size: 2rem;
    }
    
    .timeline-container {
        margin: 20px 0;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .detail-label {
        font-weight: bold;
    }
    
    .update-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .btn-pagar-taxa {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* PIX Responsivo */
    .pix-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .code-input-group {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .pix-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-success {
        width: 100%;
    }
}
