/* Feedback Form Styles - Shared between /feedback page and Help Modal */
/* This CSS is used in both standalone feedback page and Help Modal Tab 3 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container styles for standalone page only */
.feedback-page-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feedback-page-title {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 32px;
}

.feedback-page-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* Form sections */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.question {
    margin-bottom: 30px;
}

.question-text {
    font-size: 16px;
    color: #444;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Star rating system */
.star-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.star-progress-bar {
    position: relative;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-progress-bar:hover {
    background: #d0d0d0;
}

.star-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.star-markers {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
}

.star-icon {
    font-size: 20px;
    transition: all 0.2s ease;
    opacity: 0.4;
}

.star-icon.filled {
    opacity: 1;
    transform: scale(1.2);
}

.star-count {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

/* Form inputs */
textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.email-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
}

.email-input::placeholder {
    color: #999;
}

/* Bug reporting - ULTRA-COMPACT design with side-by-side layout */
.bug-report {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    position: relative;
}

.bug-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.bug-number {
    font-weight: 600;
    color: #667eea;
    font-size: 13px;
}

.remove-bug-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.remove-bug-btn:hover {
    background: #cc0000;
}

/* Side-by-side layout: Upload area LEFT, Textarea RIGHT */
.bug-content-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* File upload - miniature thumbnail on LEFT */
.file-upload-area {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px dashed #d0d0d0;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.file-upload-area.has-file {
    border-color: #4caf50;
    background: #f1f8f4;
    padding: 2px;
}

.upload-icon {
    font-size: 20px;
    line-height: 1;
}

.upload-text {
    color: #666;
    font-size: 9px;
    margin-top: 4px;
    line-height: 1.2;
}

.screenshot-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

/* Textarea for bug description - takes remaining space on RIGHT */
.bug-report textarea {
    flex: 1;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

.bug-report textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons - compact */
.add-bug-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.add-bug-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.success-message, .error-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.note {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .feedback-page-container {
        padding: 24px;
    }

    .feedback-page-title {
        font-size: 24px;
    }

    .star-progress-bar {
        height: 36px;
    }

    .star-icon {
        font-size: 16px;
    }

    .star-count {
        font-size: 16px;
        min-width: 50px;
    }
}

/* Small mobile optimization (<400px) */
@media (max-width: 400px) {
    .feedback-page-container {
        padding: 16px;
        border-radius: 12px;
    }

    .feedback-page-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .feedback-page-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .note {
        padding: 12px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .section {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .question {
        margin-bottom: 20px;
    }

    .question-text {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .star-progress-bar {
        height: 32px;
    }

    .star-icon {
        font-size: 14px;
    }

    .star-count {
        font-size: 14px;
        min-width: 45px;
    }

    textarea {
        min-height: 100px;
        padding: 12px;
        font-size: 14px;
    }

    .email-input {
        padding: 12px;
        font-size: 14px;
    }

    .bug-report {
        padding: 6px;
    }

    .bug-number {
        font-size: 12px;
    }

    .remove-bug-btn {
        padding: 2px 6px;
        font-size: 10px;
    }

    .bug-content-row {
        gap: 8px;
    }

    .file-upload-area {
        width: 60px;
        height: 60px;
        padding: 6px;
    }

    .upload-icon {
        font-size: 16px;
    }

    .upload-text {
        font-size: 8px;
    }

    .bug-report textarea {
        min-height: 60px;
        padding: 6px;
        font-size: 12px;
    }

    .add-bug-btn {
        padding: 5px 10px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .submit-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
}
