/* Feedback System Styles */
/* Inherits from parent app's styling where possible */

.feedback-section {
    margin: 15px 0;
    display:flex;
    transition: all 0.3s ease;
    font-family: inherit; /* Use parent app's font */
    font-size: inherit; /* Use parent app's font size */
    color: inherit; /* Use parent app's text color */
}

.feedback-title {
    font-weight: 600;
    color: #282828; /* Inherit parent text color, fallback to current color */
    margin-bottom: 8px;
    font-size: inherit; /* Use parent font size */
    opacity: 0.8; /* Slightly muted for hierarchy */
}

/* Reaction Widget Styles */
.feedback-reaction-widget .feedback-actions {
    gap:0;
    align-items: center;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-opacity: 0.3;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: inherit; /* Use parent font size */
    font-family: inherit; /* Use parent font family */
    text-decoration: none;
    color: inherit; /* Use parent text color */
    opacity: 0.8;
}

.feedback-btn:hover {
    background: currentColor;
    background-opacity: 0.1;
    border-color: currentColor;
    opacity: 1;
    transform: translateY(-1px);
}

.feedback-btn.feedback-like:hover {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

.feedback-btn.feedback-dislike:hover {
    background: #fde8e8;
    border-color: #dc3545;
    color: #dc3545;
}

.feedback-btn .btn-icon {
    font-size: 1.1em;
}

.feedback-btn .btn-count {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    min-width: 20px;
    text-align: center;
}

.feedback-btn.feedback-like .btn-count {
    background: #d4edda;
    color: #155724;
}

.feedback-btn.feedback-dislike .btn-count {
    background: #f8d7da;
    color: #721c24;
}

/* New FontAwesome Icon Styles */
.feedback-icon {
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: black;
    opacity: 0.6;
    padding: 5px;
    border-radius: 50%;
}

.feedback-icon:hover {
    
    /* background: currentColor;
    background-opacity: 0.1; */
}

.feedback-icon.feedback-like:hover {
    color: #28a745;
}

.feedback-icon.feedback-dislike:hover {
    color: #dc3545;
}

.feedback-icon.selected {
    opacity: 1;
    font-weight: bold;
}

.feedback-icon.selected.feedback-like {
    color: #28a745;
}

.feedback-icon.selected.feedback-dislike {
    color: #dc3545;
}

/* Rating Widget Styles */
.feedback-rating-widget .rating-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.rating-section {
    margin-bottom: 12px;
    border-bottom: 1px solid;
    padding-left:iniital;
}

.rating-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #282828;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.star {
    font-size: 1.5em;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.selected {
    color: #ffc107;
    transform: scale(1.1);
}

.star.selected {
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.rating-text {
    font-size: 0.875em;
    color: #282828;
    min-height: 1.2em;
}

.comment-section {
    margin-bottom: 12px;
}

.rating-comment {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit; /* Use parent font family */
    font-size: inherit; /* Use parent font size */
    color: inherit; /* Use parent text color */
    background: transparent;
}

.rating-comment:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.submit-section {
    text-align: left;
}

.submit-rating {
    background: transparent;
    /* color: white; */
    border: none;
    padding: 8px 16px;
    padding-left:initial;
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit; /* Use parent font size */
    font-family: inherit; /* Use parent font family */
    transition: all 0.2s ease;
}

.submit-rating:hover:not(:disabled) {
    opacity: 0.8;
    transform: translateY(-1px);
}

.submit-rating:disabled {
    background: currentColor;
    cursor: not-allowed;
    opacity: 0.4;
}

/* Loading State Styles */
.feedback-loading {
    margin: 8px 0;
    animation: fadeIn 0.2s ease;
}

.loading-text {
    font-size: 0.9em;
    color: inherit;
    opacity: 0.7;
    font-style: italic;
}

/* Confirmation State Styles */
.feedback-confirmation {
    margin: 8px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.confirmation-icon {
    font-size: 1.2em;
    color: #28a745;
}

.confirmation-text {
    flex: 1;
    font-weight: 500;
    color: #155724;
}

/* Simple confirmation text */
.simple-confirmation-text {
    font-size: 0.9em;
    color: inherit;
    opacity: 0.8;
}

.undo-link {
    color: inherit;
    text-decoration: underline;
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.7;
}

.undo-link:hover {
    opacity: 1;
    text-decoration: none;
}

.confirmation-timer {
    height: 3px;
    background: #c3e6cb;
    border-radius: 2px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    background: #28a745;
    width: 0%;
    transition: width 0.05s linear;
}

/* Completed State Styles */
.feedback-completed {
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
    color: #6c757d;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.completed-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-action {
    font-weight: 500;
    color: #495057;
}

.user-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-display {
    color: #ffc107;
    font-weight: 500;
}

.rating-comment-display {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
}

.feedback-timestamp {
    color: #6c757d;
    font-size: 0.8em;
}

/* Summary Widget Styles */
.feedback-summary {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: inline-block;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reaction-summary {
    display: flex;
    gap: 8px;
}

.like-summary,
.dislike-summary {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875em;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875em;
}

.stars-summary {
    color: #ffc107;
}

.rating-count {
    color: #6c757d;
}

/* Error States */
.feedback-error {
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Loading States */
.loading-indicator {
    text-align: center;
    color: #6c757d;
    font-size: 0.875em;
    padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feedback-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .feedback-btn {
        justify-content: center;
        min-width: 120px;
    }
    
    .confirmation-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .undo-btn {
        align-self: flex-end;
    }
}
/* 
/* Dark mode support 
@media (prefers-color-scheme: dark) {
    .feedback-section {
        color: #e9ecef;
    }
    
    .feedback-btn {
        background: #343a40;
        border-color: #495057;
        color: #e9ecef;
    }
    
    .feedback-btn:hover {
        background: #495057;
    }
    
    .rating-widget {
        background: #343a40;
        border-color: #495057;
    }
    
    .rating-comment {
        background: #495057;
        border-color: #6c757d;
        color: #e9ecef;
    }
    
    .feedback-completed {
        background: #343a40;
        border-color: #495057;
        color: #adb5bd;
    }
} */