﻿/* DSR Cash - Custom styles (Tailwind handles most styling via CDN) */

/* Force light native controls globally */
:root, html {
    color-scheme: light;
}

/* ===== TOAST ANIMATIONS ===== */
@keyframes toastIn { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(40px); } }

/* ===== LIGHT GLASS EFFECT ===== */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.glass-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.glass-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.glass-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Sidebar active link */
.nav-link-active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 58, 138, 0.12)) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* Badge styles */
.badge-waiting { background: #fef3c7; color: #b45309; }
.badge-served { background: #d1fae5; color: #047857; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }
.badge-open { background: #fee2e2; color: #b91c1c; }
.badge-partial { background: #fef3c7; color: #b45309; }
.badge-closed { background: #d1fae5; color: #047857; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* Sidebar transition for mobile */
#sidebar { transition: transform 0.3s ease; }
@media (max-width: 1024px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0 !important; }
    .menu-toggle { display: flex !important; }
}

/* Light mode form controls */
select,
select option {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}
select option:checked,
select option:hover {
    background-color: #f3f4f6 !important;
}

/* Smooth animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn 0.4s ease-out forwards; }
