/* ========================================
   BUG REPORT MODAL STYLES
======================================== */

/* Overlay */
.bug-report-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bug-report-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.bug-report-modal {
    background: var(--card-background, #ffffff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bug-report-overlay.active .bug-report-modal {
    transform: scale(1);
}

/* Header */
.bug-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #ddd);
}

.bug-report-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color, #333);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bug-report-header h2 i {
    color: var(--accent-red, #bb0000);
}

.bug-report-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.bug-report-close:hover {
    color: var(--accent-red, #bb0000);
}

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

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

.bug-report-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color, #333);
}

.bug-report-form label .required {
    color: var(--accent-red, #bb0000);
}

.bug-report-form input[type="email"],
.bug-report-form input[type="text"],
.bug-report-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bug-report-form input[type="email"]:focus,
.bug-report-form textarea:focus {
    border-color: var(--primary-color, #2c6e7f);
    box-shadow: 0 0 0 3px rgba(44, 110, 127, 0.1);
    outline: none;
}

.bug-report-form input[disabled] {
    background: #f5f5f5;
    color: #666;
}

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

.bug-report-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Message */
.bug-report-message {
    padding: 0;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.bug-report-message:empty {
    display: none;
}

.bug-report-message.success {
    display: block;
    padding: 12px;
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid var(--success-color, #4CAF50);
}

.bug-report-message.error {
    display: block;
    padding: 12px;
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid var(--error-color, #f44336);
}

/* Actions */
.bug-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.bug-report-actions .btn {
    min-width: 100px;
}

/* Footer Link */
.footer-bug-report-link {
    display: inline-block;
    color: var(--accent-red, #bb0000);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 2px solid var(--accent-red, #bb0000);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-bug-report-link:hover {
    background: var(--accent-red, #bb0000);
    color: white;
}

/* Bug Report Button (for contact page) */
.bug-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-red, #bb0000);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bug-report-btn:hover {
    background: var(--accent-red-hover, #c01818);
    transform: translateY(-2px);
}

.bug-report-btn i {
    font-size: 1.1rem;
}

/* Bug Report Card (for contact page) */
.bug-report-card {
    background: var(--card-background, #ffffff);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.bug-report-card h3 {
    margin: 0 0 10px;
    color: var(--text-color, #333);
}

.bug-report-card p {
    margin: 0 0 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .bug-report-modal {
        width: 95%;
        max-height: 95vh;
    }

    .bug-report-header {
        padding: 15px 20px;
    }

    .bug-report-form {
        padding: 20px;
    }

    .bug-report-actions {
        flex-direction: column;
    }

    .bug-report-actions .btn {
        width: 100%;
    }
}
