/* Estilos modernos do Rangel QR Code Validation */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.rangel-qr-customer-container,
.rangel-scanner-container,
.rangel-report-container,
.rangel-summary-box,
.rangel-stock-container,
.rangel-dashboard-wrapper {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    color: #333333;
}

.rangel-qr-notice.warning {
    background: #fff8e6;
    border-left: 4px solid #f39c12;
    color: #8a6d3b;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
}

.rangel-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rangel-qr-card {
    background: #fdfdfd;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rangel-qr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.rangel-qr-card.status-valid {
    border-color: #2ecc71;
}

.rangel-qr-card.status-used {
    border-color: #e74c3c;
    background: #fffdfd;
}

.rangel-qr-card.status-expired {
    border-color: #f39c12;
}

.rangel-qr-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-valid .rangel-qr-status-badge { background: #e8f8f5; color: #27ae60; }
.status-used .rangel-qr-status-badge { background: #fadbd8; color: #c0392b; }
.status-expired .rangel-qr-status-badge { background: #fef9e7; color: #d35400; }

.rangel-qr-img-wrapper img {
    max-width: 170px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 6px;
    background: #ffffff;
}

.rangel-qr-code-text code {
    font-size: 15px;
    background: #f1f3f5;
    padding: 4px 8px;
    border-radius: 4px;
    color: #2271b1;
}

.rangel-qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.rangel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.rangel-btn-pdf { background: #2271b1; color: #ffffff; }
.rangel-btn-pdf:hover { background: #1b5a8c; color: #ffffff; }

.rangel-btn-print { background: #e2e8f0; color: #333333; }
.rangel-btn-print:hover { background: #cbd5e1; }

.rangel-btn-primary { background: #2271b1; color: #ffffff; }
.rangel-btn-success { background: #27ae60; color: #ffffff; }
.rangel-btn-close { background: #7f8c8d; color: #ffffff; }

.rangel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.rangel-table th,
.rangel-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

.rangel-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555555;
}

.rangel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.rangel-modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.rangel-modal-card.large {
    max-width: 650px;
}

.rangel-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.rangel-summary-cards {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1;
    min-width: 180px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.summary-card h4 { margin: 0 0 5px 0; font-size: 13px; color: #666; }
.summary-card p { margin: 0; font-size: 22px; font-weight: bold; color: #2271b1; }
