/**
 * Styles
 */
.aiclg-tone-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.aiclg-tone-option {
    display: inline-block;
    padding: 2px 15px;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.aiclg-tone-options input[type="radio"] {
    display: none;
}

.aiclg-tone-options input[type="radio"]:checked + .aiclg-tone-option {
    background-color: #007BFF;
    color: #fff;
    border-color: #007BFF;
}

.aiclg-tone-options input[type="radio"]:focus + .aiclg-tone-option {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}
/* Container */
.aiclg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Form Container */
.aiclg-form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

/* Form Title */
.aiclg-form h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Form Groups */
.aiclg-form-group {
    margin-bottom: 20px;
}

/* Text Inputs */
.aiclg-form input[type="text"],
.aiclg-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

.aiclg-form input[type="text"]:focus,
.aiclg-form textarea:focus {
    border-color: #F26207;
    outline: none;
    box-shadow: 0 0 5px rgba(166, 123, 232, 0.3);
}

/* File Upload */
.aiclg-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F26207;
    color: white !important;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.aiclg-upload-label:hover {
    background-color: #c14e05;
}

.aiclg-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.aiclg-file-info {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* Slider */
.aiclg-slider-label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.aiclg-slider-container {
    padding: 0;
}

.aiclg-form input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #fdd6be, #F26207);
    outline: none;
}

.aiclg-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #F26207;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.aiclg-form input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #F26207;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Checkbox */
.aiclg-checkbox-container {
    display: flex;
    align-items: center;
    user-select: none;
    margin-top: 15px;
}
.aiclg-form h3 {
    font-size: 20px;
}
.aiclg-form input[type="checkbox"] {
    margin-right: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.aiclg-form input[type="checkbox"]:checked {
    background-color: #F26207;
    border-color: #F26207;
}

.aiclg-form input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.aiclg-checkbox-label {
    font-size: 15px;
    color: #555;
}

/* Submit Button */
.aiclg-submit-btn svg {
    width: 20px;
    display: inline-block;
    position: relative;
}
.aiclg-submit-btn {
    display: inline-block;
    background-color: #F26207;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.aiclg-submit-btn:hover {
    background-color: #c14e05;
}

/* Result Container */
.aiclg-result-container {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.aiclg-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.aiclg-result-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.aiclg-action-btn {
    background-color: #f0f0f0;
    color: #555;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s;
}

.aiclg-action-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Cover Letter Content */
.aiclg-cover-letter-content {
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.aiclg-cover-letter-content p {
    margin-bottom: 15px;
}

/* Loading Indicator */
.aiclg-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.aiclg-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(166, 123, 232, 0.3);
    border-radius: 50%;
    border-top-color: #F26207;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.aiclg-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid #c62828;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aiclg-container {
        padding: 10px;
    }
    
    .aiclg-form-container,
    .aiclg-result-container {
        padding: 15px;
    }
    
    .aiclg-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .aiclg-result-header h2 {
        margin-bottom: 15px;
    }
    
    .aiclg-action-btn {
        margin: 5px 10px 5px 0;
    }
}
