/* --- QR Code Display Size Control --- */

#qrcg-qrcode-placeholder {
    display: inline-block;
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    background-color: white; 
    
    /* Set a fixed size for the container */
    width: 300px;
    height: 300px;
}

/* The canvas element is the actual QR code image */
#qrcg-qrcode-placeholder canvas {
    /* Set the canvas to fill its 300x300 container */
    width: 100% !important; 
    height: 100% !important;
    max-width: 100%;
    display: block;
}

/* Message Area Styling - Using standard notification colors */
#qrcg-message-area > div {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95em;
}

.qrcg-error {
    background-color: #f8d7da; /* Light Red */
    color: #721c24; /* Dark Red */
    border: 1px solid #f5c6cb;
}

.qrcg-success {
    background-color: #d4edda; /* Light Green */
    color: #155724; /* Dark Green */
    border: 1px solid #c3e6cb;
}

.qrcg-info {
    background-color: #d1ecf1; /* Light Blue */
    color: #0c5460; /* Dark Blue */
    border: 1px solid #bee5eb;
}

/* Limit Pop-up/Error */
.qrcg-limit-error {
    background-color: #fff3cd; /* Light Yellow */
    color: #856404; /* Dark Yellow */
    border: 1px solid #ffeeba;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensure it wraps on small screens */
}

.qrcg-register-btn {
    background-color: #ffc107; 
    color: #212529;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
}