.canvas-card {
    background: #111827;
    border-radius: 6px;
    padding: 5px;
    display: block;
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.canvas-card svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

@media (min-width: 992px) {
    .canvas-card { position: sticky; top: 5px; }
}

.draggable-disk { cursor: grab; pointer-events: all; }
.draggable-disk:active { cursor: grabbing; }

.controls-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(30, 41, 59, 0.5);
    padding: 10px;
    border-radius: 16px;
}

.controls-setting {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(30, 41, 59, 0.5);
    padding: 10px;
    border-radius: 16px;
}

.control-group {
    background: rgba(15, 23, 42, 0.4);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.control-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.control-group label span { color: var(--text-muted); }
.zone-group label strong { color: var(--accent-yellow); }
.rotation-group label strong { color: var(--accent-blue); }

.time-engine-panel { border: 1px solid rgba(59, 130, 246, 0.2); }
.btn-row { display: flex; gap: 5px; margin-bottom: 10px; }

.btn {
    flex: 1;
    background: #334155;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    -webkit-tap-highlight-color: transparent; 
}
.btn.active-btn { background: var(--accent-blue); }

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: #334155;
    height: 6px;
    border-radius: 5px;
    outline: none;
    touch-action: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    background: #fff;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    background: #fff;
}

.zone-group input[type="range"]::-webkit-slider-thumb { background: var(--accent-yellow); }
.rotation-group input[type="range"]::-webkit-slider-thumb { background: var(--accent-blue); }
.zone-group input[type="range"]::-moz-range-thumb { background: var(--accent-yellow); }
.rotation-group input[type="range"]::-moz-range-thumb { background: var(--accent-blue); }

.table-container {
    background: rgba(15, 23, 42, 0.5);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.table-container h3 { font-size: 0.95rem; margin-bottom: 4px; }
.table-note { font-size: 0.75rem; color: var(--accent-orange); margin-bottom: 3px; }

.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th, td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: left; }
th { color: var(--text-muted); font-weight: 600; }
tbody tr.highlight-makkah { background: rgba(16, 185, 129, 0.12); color: #a7f3d0; }
tbody tr.highlight-user { background: rgba(255, 215, 0, 0.08); }

.legend-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 5px;
}
.legend-item { display: flex; align-items: flex-start; gap: 5px; line-height: 1.4; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; margin-top: 3px; }
.dot.kuning { background: var(--accent-yellow); }
.line { width: 20px; height: 2px; display: inline-block; flex-shrink: 0; margin-top: 8px; }
.line.hijau { border-top: 2px dashed var(--accent-green); }
.line.oren { border-top: 2px dashed var(--accent-orange); }
