/* Bug Report System Styles */

/* Floating Button */
#bug-report-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00BFA6;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

#bug-report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#bug-report-button svg {
    width: 20px;
    height: 20px;
}

/* Modal */
.bug-report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.bug-report-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bug-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px 12px 0 0;
}

.bug-report-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Form */
#bug-report-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}



.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    position: relative;
}

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

.file-upload-area.drag-over {
    border-color: #667eea;
    background: #e0f2fe;
    transform: scale(1.02);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-icon {
    font-size: 32px;
    color: #6b7280;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-upload-primary {
    font-weight: 500;
    color: #374151;
    font-size: 16px;
}

.file-upload-secondary {
    color: #6b7280;
    font-size: 14px;
}

.file-upload-info {
    color: #9ca3af;
    font-size: 12px;
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    gap: 12px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    word-break: break-all;
}

.file-size {
    color: #6b7280;
    font-size: 12px;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.remove-file:hover {
    background: #dc2626;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #9ca3af !important;
    color: #6b7280 !important;
}

.form-actions button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

#cancel-bug-report {
    background: #f3f4f6;
    color: #374151;
}

#cancel-bug-report:hover {
    background: #e5e7eb;
}

#submit-bug-report {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#submit-bug-report:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#submit-bug-report:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Notifications */
.bug-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.bug-notification.show {
    transform: translateX(0);
}

.bug-notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bug-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bug-report-content {
        width: 95%;
        margin: 20px;
    }
    
    .bug-report-header {
        padding: 16px 20px;
    }
    
    .bug-report-header h2 {
        font-size: 18px;
    }
    
    #bug-report-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    #bug-report-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    #bug-report-button span {
        display: none;
    }
    
    #bug-report-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Priority Colors */
.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-low {
    background: #dbeafe;
    color: #1e40af;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-high {
    background: #fed7d7;
    color: #c53030;
}

.priority-critical {
    background: #fecaca;
    color: #991b1b;
    font-weight: 600;
}

/* Type Colors */
.type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-bug {
    background: #fee2e2;
    color: #dc2626;
}

.type-improvement {
    background: #d1fae5;
    color: #059669;
}

.type-feedback {
    background: #dbeafe;
    color: #2563eb;
} 