/* ============================================
   Wacana Playstation - Custom Styles
   ============================================ */

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main, #f1f5f9); }
::-webkit-scrollbar-thumb { background: var(--text-secondary, #94a3b8); border-radius: 3px; opacity: 0.5; }
::-webkit-scrollbar-thumb:hover { background: var(--text-primary, #64748b); opacity: 0.7; }

/* Timer font */
.timer-display {
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Card hover */
.ps-card {
    transition: all 0.2s ease;
}
.ps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Status indicators */
.status-available { background: var(--color-available-bg); color: var(--color-available-text); }
.status-in_use { background: var(--color-playing-bg); color: var(--color-playing-text); }
.status-paused { background: var(--color-paused-bg); color: var(--color-paused-text); }
.status-maintenance { background: var(--btn-red-bg, rgba(239,68,68,0.08)); color: var(--btn-red-text, #dc2626); }

/* Toast animation */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.toast-enter { animation: slideIn 0.3s ease; }
.toast-exit { animation: slideOut 0.3s ease; }

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Sidebar active */
.nav-item.active {
    background: rgba(249,189,43,0.15);
    border-right: 3px solid #f9bd2b;
}

/* Pulse animation for active timer */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-dot {
    animation: pulse-dot 1s ease-in-out infinite;
}

/* WA Preview */
.wa-preview {
    background: #1a1a2e;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
}

/* Mobile bottom sheet */
@media (max-width: 768px) {
    .mobile-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 1rem 1rem 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Slide-up animation for mobile cart */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}
