/* Custom styles and animations for oksi-kuesioner */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism Header */
.header-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Read only preview container */
.preview-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #6366f1;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
    line-height: 1.6;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Rating Radio Tile */
.rating-tile {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    text-align: center;
    background: #ffffff;
    user-select: none;
}

.rating-tile:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.rating-tile.selected-1 {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.rating-tile.selected-2 {
    border-color: #f97316;
    background-color: #fff7ed;
    color: #9a3412;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.rating-tile.selected-3 {
    border-color: #0284c7;
    background-color: #f0f9ff;
    color: #0369a1;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.rating-tile.selected-4 {
    border-color: #10b981;
    background-color: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Di luar kompetensi card */
.ooc-box {
    border: 2px dashed #c084fc;
    background-color: #faf5ff;
    transition: all 0.2s ease;
}

.ooc-box.active {
    background-color: #f3e8ff;
    border-color: #9333ea;
    border-style: solid;
}

/* Quick Jump Pill */
.jump-pill {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
}

.jump-pill:hover {
    transform: scale(1.1);
    z-index: 10;
}

.jump-pill.status-empty {
    background-color: #f1f5f9;
    color: #64748b;
}

.jump-pill.status-done {
    background-color: #10b981;
    border-color: #059669;
    color: #ffffff;
}

.jump-pill.status-ooc {
    background-color: #9333ea;
    border-color: #7e22ce;
    color: #ffffff;
}

.jump-pill.status-warning {
    background-color: #f59e0b;
    border-color: #d97706;
    color: #ffffff;
    animation: pulse 2s infinite;
}

/* Floating Drawer Backdrop */
.drawer-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-fast {
    animation: pulse 1s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
