/* Wrapper i përgjithshëm */
.smtqr-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 15px;
}

/* Mesazhi i suksesit */
.smtqr-alert-success {
    background: #e0f6e8;
    border: 1px solid #6cc48a;
    color: #256b3a;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Mesazh duplikimi / warning */
.smtqr-alert-warning {
    background: #fff4e5;
    border: 1px solid #e0a13a;
    color: #7d5200;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Header + search + button */
.smtqr-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.smtqr-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.smtqr-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.smtqr-search {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 230px;
    font-size: 14px;
}

/* Butoni kryesor (përdoret brenda popup-it) */
.smtqr-btn-primary {
    background: #154771;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.smtqr-btn-primary:hover {
    background: #113859;
}

.smtqr-btn-full {
    width: 100%;
}

/* Butoni + i rrumbullakët */
.smtqr-btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #154771;
    color: #fff;
    font-size: 26px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.smtqr-btn-circle:hover {
    background: #113859;
}

/* Tabela */
.smtqr-table-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    padding: 18px;
}

.smtqr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.smtqr-table th,
.smtqr-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eef0f2;
    text-align: center;
}

.smtqr-table th {
    font-weight: 600;
    background: #f8fafc;
}

/* Rreshtat e skaduar */
.smtqr-row-expired {
    background: #ffeaea;
    color: #a32626;
}

/* QR img */
.qr-img {
    width: 80px;
    height: 80px;
}

/* Download butoni */
.download-btn {
    background: #007bff;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

.download-btn:hover {
    background: #005fcc;
}

/* ===== Modal / Popup ===== */

.smtqr-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.smtqr-modal.is-open {
    display: block;
}

.smtqr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}

.smtqr-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    max-width: 420px;
    max-height: 90vh;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow-y: auto;
}

.smtqr-modal-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

.smtqr-form label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
}

.smtqr-form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 4px;
    font-size: 14px;
}

/* Close button */
.smtqr-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
