/* Issue Report Button (navbar) */
.btn-issue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 2px solid #e0a800;
    color: #856404 !important;
    border-radius: 25px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-issue:hover {
    background: #e0a800;
    color: white !important;
    box-shadow: 0 3px 8px rgba(224, 168, 0, 0.3);
}

.btn-issue i {
    font-size: 1rem;
}

/* Issue Reporter Overlay (patient/doctor) */
.issue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.issue-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    background: var(--gray-50, #f9fafb);
    box-shadow: var(--shadow-xs, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
    min-height: 48px;
}

.issue-header .back-btn,
.issue-header .close-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #6c757d;
    padding: 4px 8px;
    cursor: pointer;
}

.issue-header .back-btn:hover,
.issue-header .close-btn:hover {
    color: #212529;
}

.issue-header .issue-title {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
}

.issue-header .close-btn {
    margin-left: auto;
}

.issue-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Issue List */
.issue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.issue-item {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 12px;
    transition: border-color var(--duration-fast, 0.15s), box-shadow var(--duration-fast, 0.15s);
}

.issue-item:hover {
    border-color: var(--gray-300, #adb5bd);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
}

.issue-item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.issue-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.issue-item-desc {
    font-size: 0.8rem;
    line-height: 1.4;
}

.issue-item-meta {
    font-size: 0.75rem;
}

.issue-admin-notes {
    font-size: 0.8rem;
    background: #f0f8ff;
    padding: 6px 8px;
    border-radius: 4px;
}

/* Status Badges */
.issue-status-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full, 9999px);
    font-weight: var(--font-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.issue-status-badge.open {
    background: #fff3cd;
    color: #856404;
}

.issue-status-badge.in_progress {
    background: #d1ecf1;
    color: #0c5460;
}

.issue-status-badge.resolved {
    background: #d4edda;
    color: #155724;
}

.issue-status-badge.closed {
    background: #e2e3e5;
    color: #383d41;
}

/* Priority Badges */
.issue-priority-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.issue-priority-badge.low {
    background: #e9ecef;
    color: #6c757d;
}

.issue-priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.issue-priority-badge.high {
    background: #f8d7da;
    color: #721c24;
}

/* Category Badge */
.issue-category-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 8px;
    background: #e7f1ff;
    color: #084298;
}

/* Form */
.issue-form .form-label {
    margin-bottom: 4px;
}

/* Actions Bar */
.issue-actions-bar {
    display: flex;
    align-items: center;
}

/* Admin Detail Overlay */
.issue-detail-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #fff;
    z-index: 1060;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.issue-detail-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.issue-detail-header .btn-back {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #6c757d;
    padding: 4px 8px;
    cursor: pointer;
    margin-right: 8px;
}

.issue-detail-header h6 {
    margin: 0;
}

.issue-detail-content {
    flex: 1;
    overflow-y: auto;
}

/* Screenshot Lightbox */
.screenshot-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.screenshot-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-lightbox-content img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.screenshot-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.screenshot-lightbox-close:hover {
    opacity: 1;
}

.issue-screenshot-thumb {
    transition: opacity 0.15s;
}

.issue-screenshot-thumb:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .issue-detail-overlay {
        max-width: 100%;
    }
}
