/* ============================================
   SpotCheck - Cat Anatomy Examination
   ============================================ */

/* Container */
.spotcheck-wrap {
    margin: 8px 0 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

/* Modal pet info */
.sc-modal-petinfo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(233,30,99,0.06), rgba(156,39,176,0.06));
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(233,30,99,0.12);
}

.sc-modal-petinfo i {
    font-size: 28px;
    color: #E91E63;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233,30,99,0.08);
    border-radius: 12px;
}

.sc-modal-petinfo h4 {
    margin: 0 0 2px;
    font-size: 15px;
    color: #1e293b;
}

.sc-modal-petinfo p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

/* Timeline panel */
.sc-timeline-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sc-timeline-panel.hidden {
    display: none;
}

.sc-timeline-panel h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-timeline-panel h4 i {
    color: #E91E63;
}

/* Tabs */
.sc-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sc-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    border-bottom: 3px solid transparent;
}

.sc-tab:disabled {
    opacity: .6;
    cursor: default;
}

.sc-tab:hover:not(:disabled) {
    color: #E91E63;
    background: rgba(233, 30, 99, 0.04);
}

.sc-tab.active {
    color: #E91E63;
    border-bottom-color: #E91E63;
    background: #fff;
}

/* SVG Wrapper */
.sc-svg-wrap {
    padding: 20px;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}

.sc-svg {
    width: 280px;
    height: auto;
    max-width: 100%;
}

/* SVG Outline (body shape) */
.sc-outline {
    fill: rgba(248, 250, 252, 0.6);
    stroke: #94a3b8;
    stroke-width: 1.5;
    stroke-dasharray: 5,4;
    pointer-events: none;
}

/* SVG Spine and guides */
.sc-spine {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 1;
    stroke-dasharray: 3,3;
    pointer-events: none;
}

.sc-guide {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 1;
    stroke-dasharray: 4,4;
    pointer-events: none;
}

.sc-rib {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 0.8;
    pointer-events: none;
}

.sc-inner {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 1;
    pointer-events: none;
}

.sc-pupil {
    fill: #1e293b;
    pointer-events: none;
}

.sc-nostril {
    fill: #475569;
    pointer-events: none;
}

.sc-mouth-line {
    fill: none;
    stroke: #94a3b8;
    stroke-width: 0.8;
    pointer-events: none;
}

.sc-whisker {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 0.6;
    pointer-events: none;
}

.sc-tail-detail {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 1;
    stroke-dasharray: 2,2;
    pointer-events: none;
}

/* SVG Areas (clickable) */
.sc-area {
    fill: rgba(241, 245, 249, 0.35);
    stroke: #475569;
    stroke-width: 2;
    cursor: pointer;
    transition: all .2s;
}

.sc-area:hover {
    stroke: #3b82f6;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.35));
}

.sc-area.selected {
    stroke: #0ea5e9;
    stroke-width: 3;
    stroke-dasharray: 5,3;
}

.sc-area.selected.abnormal {
    stroke: #E91E63;
    stroke-width: 3;
    stroke-dasharray: 5,3;
}

.sc-area.selected:hover {
    stroke: #0284c7;
    stroke-width: 3.5;
}

.sc-area.selected.abnormal:hover {
    stroke: #be185d;
    stroke-width: 3.5;
}

.sc-area.readonly {
    cursor: default;
}

.sc-area.readonly:hover {
    stroke: #475569;
    stroke-width: 2;
    filter: none;
}

.sc-area.readonly.selected:hover {
    stroke: #0ea5e9;
    stroke-width: 3;
}

.sc-area.readonly.selected.abnormal:hover {
    stroke: #E91E63;
    stroke-width: 3;
}

/* SVG Labels */
.sc-label {
    font-size: 9px;
    fill: #94a3b8;
    text-anchor: middle;
    pointer-events: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
}

/* Detail Container */
.sc-detail-container {
    padding: 0 16px 16px;
    max-height: 360px;
    overflow-y: auto;
}

.sc-detail-empty {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
    font-size: 13px;
}

/* Detail Card */
.sc-detail-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all .15s;
}

.sc-detail-card:hover {
    border-color: #cbd5e1;
}

.sc-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}

.sc-detail-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
}

.sc-detail-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-status-radio {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all .15s;
}

.sc-status-radio:hover {
    border-color: #cbd5e1;
}

.sc-status-radio input {
    display: none;
}

.sc-status-radio.checked {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.sc-status-radio.checked.abnormal {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.sc-btn-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .15s;
}

.sc-btn-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Detail Body */
.sc-detail-body {
    padding: 12px 14px;
    background: #fff;
}

.sc-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sc-form-group {
    flex: 1;
    min-width: 0;
}

.sc-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sc-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #334155;
    outline: none;
    transition: all .15s;
}

.sc-select:focus {
    border-color: #E91E63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08);
}

.sc-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #334155;
    outline: none;
    resize: vertical;
    font-family: inherit;
    transition: all .15s;
}

.sc-textarea:focus {
    border-color: #E91E63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08);
}

.sc-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.sc-btn-copy {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}

.sc-btn-copy:hover {
    background: linear-gradient(135deg, #E91E63, #9C27B0);
    color: #fff;
    border-color: transparent;
}

/* Timeline badges */
.sc-timeline-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.sc-timeline-normal {
    background: #dcfce7;
    color: #166534;
}

.sc-timeline-abnormal {
    background: #fee2e2;
    color: #991b1b;
}

/* Scrollbar for detail container */
.sc-detail-container::-webkit-scrollbar {
    width: 5px;
}
.sc-detail-container::-webkit-scrollbar-track {
    background: transparent;
}
.sc-detail-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .sc-svg {
        width: 220px;
    }
    .sc-form-row {
        flex-direction: column;
        gap: 8px;
    }
    .sc-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .sc-modal-petinfo {
        flex-direction: column;
        text-align: center;
    }
}
