/* 
 * Feedback Widget Styles - AccOps HyWorks Documentation
 * Version: 1.0
 * Compatible with: MkDocs Material 9.7.0
 */

.feedback-widget {
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    border-top: 2px solid #ff5722;
    background: #f5f5f5;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.feedback-container,
.feedback-rating-form,
.feedback-thank-you {
    text-align: center;
}

.feedback-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
}

/* Yes/No Buttons */
.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feedback-yes {
    color: #4caf50;
    border-color: #4caf50;
}

.feedback-yes:hover {
    background: #4caf50;
    color: white;
}

.feedback-no {
    color: #f44336;
    border-color: #f44336;
}

.feedback-no:hover {
    background: #f44336;
    color: white;
}

/* Star Rating */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-size: 2.5rem;
}

.star {
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #ffc107;
    transform: scale(1.2);
}

.star.selected {
    color: #ff9800;
}

/* Comment Textarea */
#feedback-comment {
    width: 100%;
    max-width: 600px;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#feedback-comment:focus {
    outline: none;
    border-color: #ff5722;
}

/* Form Actions */
.feedback-form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feedback-submit,
.feedback-skip {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-submit {
    background: #ff5722;
    color: white;
}

.feedback-submit:hover {
    background: #f4511e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.feedback-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.feedback-skip {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.feedback-skip:hover {
    border-color: #999;
    color: #333;
}

/* Thank You Message */
.feedback-thank-you {
    padding: 2rem;
}

.feedback-thank-you p {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Dark Mode Support */
[data-md-color-scheme="slate"] .feedback-widget {
    background: #2d2d2d;
    border-top-color: #ff5722;
}

[data-md-color-scheme="slate"] .feedback-title {
    color: #fff;
}

[data-md-color-scheme="slate"] .feedback-btn {
    background: #1a1a1a;
    border-color: #444;
    color: inherit;
}

[data-md-color-scheme="slate"] .feedback-btn:hover {
    background: #333;
}

[data-md-color-scheme="slate"] .feedback-yes:hover {
    background: #4caf50;
    color: white;
}

[data-md-color-scheme="slate"] .feedback-no:hover {
    background: #f44336;
    color: white;
}

[data-md-color-scheme="slate"] #feedback-comment {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}

[data-md-color-scheme="slate"] .feedback-thank-you p {
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-widget {
        padding: 1.5rem 1rem;
        margin: 2rem 0 1rem 0;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .feedback-btn {
        width: 100%;
        justify-content: center;
    }
    
    .star-rating {
        font-size: 2rem;
    }
    
    .feedback-form-actions {
        flex-direction: column;
    }
    
    .feedback-submit,
    .feedback-skip {
        width: 100%;
    }
}

/* Print - hide feedback widget */
@media print {
    .feedback-widget {
        display: none;
    }
}
