/* Main Container */
.cqr-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.cqr-header {
    text-align: center;
    margin-bottom: 20px;
}

.cqr-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
}

.cqr-header i {
    margin-right: 10px;
    color: #3498db;
}

/* Tabs */
.cqr-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.cqr-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #f1f1f1;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    margin-right: 5px;
}

.cqr-tab:last-child {
    margin-right: 0;
}

.cqr-tab.active {
    background: #3498db;
    color: white;
}

.cqr-tab i {
    margin-right: 5px;
}

/* Tab Content */
.cqr-tab-content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cqr-tab-content.active {
    display: block;
}

/* Form Elements */
.cqr-form-group {
    margin-bottom: 15px;
}

.cqr-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.cqr-form-group label i {
    margin-right: 8px;
    color: #3498db;
}

.cqr-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.cqr-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

textarea.cqr-input {
    min-height: 100px;
    resize: vertical;
}

/* Range Input */
.cqr-range {
    width: calc(100% - 50px);
    vertical-align: middle;
}

#cqr-size-value {
    display: inline-block;
    width: 45px;
    text-align: right;
    margin-left: 5px;
}

/* Color Input */
input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Buttons */
.cqr-button {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.cqr-button:hover {
    background: #2980b9;
}

.cqr-button i {
    margin-right: 8px;
}

/* Result Section */
.cqr-result {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cqr-result h3 {
    margin-top: 0;
    color: #2c3e50;
}

.cqr-result h3 i {
    margin-right: 10px;
    color: #3498db;
}

#cqr-result {
    margin: 20px auto;
    display: inline-block;
}

.cqr-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Loading Animation */
.cqr-loading {
    padding: 20px;
    color: #3498db;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    .cqr-tabs {
        flex-direction: column;
    }
    
    .cqr-tab {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
    
    .cqr-actions {
        flex-direction: column;
    }
    
    .cqr-button {
        width: 100%;
        margin-bottom: 10px;
    }
}