/**
 * Admin styles for Simple URL to QR Code plugin
 */

/* Main container styles */
.sutq-container {
    max-width: 600px;
}

.sutq-qr-card {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

/* QR code preview section */
.sutq-qr-preview {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.sutq-qr-image {
    max-width: 100%;
    height: auto;
}

/* Shortcode section */
.sutq-shortcode-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.sutq-shortcode-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    max-width: 100%;
}

/* Fixed shortcode display */
.sutq-shortcode {
    flex: 1;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* Important for text-overflow to work */
}

/* Copy button styles */
.sutq-copy-btn {
    flex: 0 0 auto; /* Prevent button from shrinking */
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    white-space: nowrap;
    min-width: 80px;
}

.sutq-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Success state for copy button */
.sutq-copied {
    background-color: #46b450 !important;
    color: #fff !important;
}

/* Responsive styles */
@media screen and (max-width: 782px) {
    .sutq-shortcode-container {
        flex-direction: column;
    }
    
    .sutq-copy-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .sutq-shortcode {
        width: 100%;
    }
}