/* QR Redirect Manager Frontend Styles */

.qr-code-shortcode,
.qr-redirect-shortcode {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qr-code-display {
    margin-bottom: 20px;
}

.qr-code-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

.qr-info {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: left;
}

.qr-info p {
    margin: 5px 0;
    font-size: 14px;
}

.qr-info a {
    color: #0073aa;
    text-decoration: none;
}

.qr-info a:hover {
    text-decoration: underline;
}

.qr-status {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: left;
}

.qr-status .status-active {
    color: #46b450;
    font-weight: bold;
}

.qr-status .status-inactive {
    color: #ffb900;
    font-weight: bold;
}

.qr-status .status-cancelled {
    color: #dc3232;
    font-weight: bold;
}

.qr-error {
    color: #dc3232;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Widget specific styles */
.widget_qr_redirect_widget .qr-redirect-shortcode {
    margin: 0;
    padding: 15px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.widget_qr_redirect_widget .qr-code-image {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qr-code-shortcode,
    .qr-redirect-shortcode {
        margin: 10px 0;
        padding: 15px;
    }
    
    .qr-code-image {
        max-width: 100%;
        height: auto;
    }
    
    .qr-info {
        padding: 10px;
    }
    
    .qr-info p {
        font-size: 13px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .qr-code-shortcode,
    .qr-redirect-shortcode {
        background: #2c2c2c;
        border-color: #555;
        color: #fff;
    }
    
    .qr-code-image {
        background: #fff;
    }
    
    .qr-info {
        background: #3c3c3c;
        color: #fff;
    }
    
    .qr-info a {
        color: #4fc3f7;
    }
}
