/* 
 * Cafe-Able POS Custom Stylesheet
 * Single Source of Truth for Visual Design
 */

:root {
    --cafe-primary: #3b82f6; /* Fresh Blue */
    --cafe-primary-hover: #2563eb;
    --cafe-secondary: #1e293b; /* Deep slate */
    --cafe-bg: #f1f5f9; /* Fresh light gray-blue for background */
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--cafe-bg);
    color: #333;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Support for mobile browsers */
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Custom Text & BG Utility Classes */
.text-cafe {
    color: var(--cafe-primary) !important;
}

.bg-cafe {
    background-color: var(--cafe-primary) !important;
    color: white;
}

/* Button Customization */
.btn-cafe {
    background-color: var(--cafe-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-cafe:hover {
    background-color: var(--cafe-primary-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-cafe:active {
    transform: translateY(0);
}

/* Sidebar Navigation Hover */
.nav-hover {
    transition: all 0.2s ease-in-out;
}

.nav-hover:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--cafe-primary) !important;
}

/* Input Focus States (overriding bootstrap default blue ring) */
.form-control:focus, .form-check-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-check-input:checked {
    background-color: var(--cafe-primary);
    border-color: var(--cafe-primary);
}

/* Layout Wrappers */
.main-wrapper {
    display: flex;
    flex-grow: 1;
    width: 100vw;
    overflow: hidden;
    background-color: var(--cafe-bg);
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0;
}

.main-content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 0;
}

/* Custom Scrollbar for a more modern feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Modern Premium Design */
.sidebar-modern {
    background: linear-gradient(145deg, #181824 0%, #1e1e2d 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@media (min-width: 768px) {
    .sidebar-desktop {
        width: 280px !important;
        min-width: 280px !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        transition: width 0.3s ease, min-width 0.3s ease, transform 0.3s ease !important;
    }
    
    .sidebar-collapsed {
        width: 0 !important;
        min-width: 0 !important;
        transform: translateX(-100%);
        overflow: hidden;
    }
}

.nav-item-modern {
    color: #8A8B9F !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
}

.nav-item-modern:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.nav-item-modern.active-menu {
    background: linear-gradient(135deg, var(--cafe-primary) 0%, var(--cafe-primary-hover) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-weight: 600;
}

.border-cafe {
    border-color: var(--cafe-primary) !important;
}

.sidebar-user-card {
    background-color: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.05);
}

.sidebar-user-card:hover {
    background-color: rgba(255,255,255,0.08) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}
