﻿/* Floating Action Button */
.bug-report-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    user-select: none;
}

    .bug-report-fab:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    }

    .bug-report-fab:active {
        transform: scale(0.95);
    }

    /* Recording state */
    .bug-report-fab.recording {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        animation: pulse-recording 1.5s infinite;
    }

@keyframes pulse-recording {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.8);
    }
}

/* Modal Overlay */
.bug-report-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .bug-report-modal-overlay.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content */
.bug-report-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.bug-report-modal-header {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .bug-report-modal-header h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
    }

.bug-report-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

    .bug-report-modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* Modal Body */
.bug-report-modal-body {
    padding: 30px;
}

/* Issue Type Selection */
.issue-type-container {
    margin-bottom: 30px;
}

    .issue-type-container label {
        display: block;
        font-weight: 600;
        color: #2C3E50;
        margin-bottom: 15px;
        font-size: 16px;
    }

.issue-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.issue-type-btn {
    padding: 20px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

    .issue-type-btn:hover {
        border-color: #3498db;
        background: #EBF5FB;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    }

    .issue-type-btn.selected {
        border-color: #3498db;
        background: #3498db;
        color: white;
        font-weight: 600;
    }

    .issue-type-btn .icon {
        font-size: 32px;
    }

/* Capture Mode Selection */
.capture-mode-container {
    margin-bottom: 30px;
}

    .capture-mode-container label {
        display: block;
        font-weight: 600;
        color: #2C3E50;
        margin-bottom: 15px;
        font-size: 16px;
    }

.capture-mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.capture-mode-option {
    padding: 16px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .capture-mode-option:hover {
        border-color: #3498db;
        background: #EBF5FB;
    }

    .capture-mode-option.selected {
        border-color: #3498db;
        background: #EBF5FB;
    }

    .capture-mode-option input[type="radio"] {
        margin-top: 4px;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.capture-mode-text {
    flex: 1;
}

    .capture-mode-text strong {
        display: block;
        color: #2C3E50;
        margin-bottom: 4px;
        font-size: 15px;
    }

    .capture-mode-text small {
        color: #7F8C8D;
        font-size: 13px;
    }

/* Modal Footer */
.bug-report-modal-footer {
    padding: 20px 30px;
    background: #F8F9FA;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #E0E0E0;
}

.btn-cancel, .btn-start {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #95A5A6;
    color: white;
}

    .btn-cancel:hover {
        background: #7F8C8D;
    }

.btn-start {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    color: white;
}

    .btn-start:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

    .btn-start:disabled {
        background: #BDC3C7;
        cursor: not-allowed;
        transform: none;
    }

/* Toast Notification */
.bug-report-toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #27AE60;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bug-report-fab {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .bug-report-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .bug-report-modal-body {
        padding: 20px;
    }

    .issue-type-buttons {
        grid-template-columns: 1fr;
    }
}
