/* Review Mode Styles */
:root {
    --review-red: #ff4444;
    --review-blue: #007bff;
    --review-overlay: rgba(0, 123, 255, 0.1);
}

body {
    transition: padding-left 0.3s ease;
}

body.review-panel-open {
    padding-left: 300px;
}

body.review-panel-open .header {
    left: 300px;
    width: calc(100% - 300px);
}

.review-toggle-btn {
    position: fixed;
    bottom: 90px; /* Above WA button */
    right: 20px;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.review-toggle-btn.active {
    background: var(--review-red);
}

.review-active * {
    cursor: crosshair !important;
}

.review-highlight {
    outline: 2px dashed var(--review-blue) !important;
    background-color: var(--review-overlay) !important;
}

/* Comment Marker */
.review-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--review-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    pointer-events: auto;
    cursor: pointer;
}

/* Review Modal */
.review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10001;
    width: 90%;
    max-width: 400px;
    display: none;
}

.review-modal.show {
    display: block;
}

.review-modal h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-modal textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
}

.review-modal-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.review-modal-btns button {
    padding: 8px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.review-save { background: var(--review-red); color: white; }
.review-cancel { background: #eee; }

/* Review Summary Panel */
.review-panel {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 9998;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.review-panel.open {
    left: 0;
}

.review-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.review-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.review-item .delete-comment {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #ccc;
    cursor: pointer;
}

.review-item .delete-comment:hover { color: var(--review-red); }

.export-btn {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
}
