/***************************************************************************************
 * FileName : issuetracker.css
 * Description : 이슈트래커 위젯 스타일 (APP_DEBUG 전용, partials/issuetracker-widget)
 * Author : (주)한국공학기술연구원 박은정
 * Created Date : 2026.03.12
 * Modified Date :
 * Reference :
 ***************************************************************************************/

/* 2026.03.12 : 박은정 : partials/issuetracker-widget.blade.php style 태그 분리 */

.feedback-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(227, 150, 62, 0.85);
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: 1.125rem;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-fab:hover {
    transform: scale(1.1);
}

.feedback-fab .shortcut-hint {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.feedback-fab:hover .shortcut-hint {
    opacity: 1;
}

.feedback-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

/* 2026.04.17 : 손철수 : .active→.is-active — resources/ 버전과 동기화 (K260313z 누락) */
.feedback-modal-backdrop.is-active {
    display: flex;
}

.feedback-modal {
    background: white;
    border-radius: 0.75rem;
    width: 460px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.feedback-modal-header {
    background: #e3963e;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
}

.feedback-modal-header:active {
    cursor: grabbing;
}

.feedback-modal-header h6 {
    margin: 0;
    font-size: 0.9rem;
    pointer-events: none;
}

.feedback-modal-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.8;
}

.feedback-modal-header .close-btn:hover {
    opacity: 1;
}

.feedback-modal-body {
    padding: 1rem;
}

.feedback-context {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
}

.feedback-context dt {
    color: #6c757d;
    font-weight: 600;
}

.feedback-context dd {
    margin-bottom: 0.25rem;
    color: #212529;
    word-break: break-all;
}

.fb-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.fb-tester-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    margin-bottom: 0.625rem;
}

.fb-tester-input:focus {
    border-color: #6c757d;
    outline: none;
}

.feedback-type-group {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}

.feedback-pill-btn {
    padding: 0.2rem 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 1rem;
    background: white;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}

.feedback-pill-btn:hover {
    border-color: #6c757d;
}

/* 2026.04.17 : 손철수 : .active→.is-active 동기화 */
.feedback-pill-btn.is-active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.fb-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.fb-row > div {
    flex: 1;
}

.fb-level-group {
    display: flex;
    gap: 0.25rem;
}

.fb-level-btn {
    flex: 1;
    padding: 0.25rem 0;
    border: 1.5px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    color: #495057;
}

.fb-level-btn:hover {
    border-color: #6c757d;
}

/* 2026.04.17 : 손철수 : .active→.is-active 동기화 */
.fb-level-btn.is-active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.feedback-textarea {
    width: 100%;
    min-height: 80px;
    border: 1.5px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 0.85rem;
    resize: vertical;
}

.feedback-textarea:focus {
    border-color: #6c757d;
    outline: none;
}

.feedback-submit {
    width: 100%;
    padding: 0.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.feedback-submit:hover {
    background: #5a6268;
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 2026.04.20 : 손철수 : 빈 토스트 잔상 제거 — opacity+pointer-events로 완전 숨김 (translateX만으로는 padding 때문에 우측상단에 그림자 노출) */
.feedback-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
}

.feedback-toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.feedback-toast.success {
    background: #198754;
}

.feedback-toast.error {
    background: #dc3545;
}

.feedback-toast.warning {
    background: #e3963e;
}

.fb-driver-group {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}

.fb-driver-pill {
    padding: 0.2rem 0.5rem;
    border: 1.5px solid #dee2e6;
    border-radius: 1rem;
    background: white;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
}

.fb-driver-pill:hover {
    border-color: #6c757d;
}

/* 2026.04.17 : 손철수 : .active→.is-active 동기화 */
.fb-driver-pill.is-active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.fb-screenshot-wrap {
    margin-bottom: 0.625rem;
    position: relative;
}

.fb-screenshot-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    object-position: top left;
    border: 1.5px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
}

.fb-screenshot-img:hover {
    border-color: #6c757d;
}

.fb-screenshot-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-screenshot-remove:hover {
    background: rgba(220, 53, 69, 0.8);
}

.fb-screenshot-placeholder {
    border: 1.5px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: #adb5bd;
}

.fb-screenshot-placeholder.capturing {
    color: #e3963e;
}
