/**
 * Feedback Widget Styles
 *
 * Fixed position widget in bottom-left corner for feedback/bug reports
 */

/* ========================================
   Feedback Widget Container
   ======================================== */
.feedback-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
}

/* ========================================
   Toggle Button
   ======================================== */
.feedback-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.feedback-toggle:active {
    transform: translateY(0);
}

.feedback-toggle i {
    font-size: 18px;
}

/* ========================================
   Form Container
   ======================================== */
.feedback-form-container {
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.feedback-form-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Header
   ======================================== */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
}

.feedback-header h5 {
    font-size: 16px;
    font-weight: 600;
}

/* ========================================
   Form
   ======================================== */
.feedback-form {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.feedback-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.feedback-form .form-control,
.feedback-form .form-select {
    font-size: 13px;
}

.feedback-form .form-text {
    font-size: 11px;
}

/* ========================================
   File Preview
   ======================================== */
.file-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
}

.file-preview-item i {
    font-size: 16px;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #6c757d;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-remove:hover {
    color: #c82333;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 480px) {
    .feedback-form-container {
        width: calc(100vw - 40px);
    }

    .feedback-toggle span {
        display: none;
    }

    .feedback-toggle {
        padding: 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
}

/* ========================================
   Scrollbar Styling (for form container)
   ======================================== */
.feedback-form::-webkit-scrollbar {
    width: 6px;
}

.feedback-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.feedback-form::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.feedback-form::-webkit-scrollbar-thumb:hover {
    background: #555;
}
