/* Dashboard Custom Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Nunito', sans-serif;
}

/* Sidebar Styles */
.sidebar {
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1000;
    transition: all 0.3s;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.5rem 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: #4e73df;
    text-align: center;
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    padding: 0;
    list-style: none;
}

.sidebar-header {
    color: #b7b9cc;
    letter-spacing: 0.1rem;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem !important;
}

.sidebar-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #4e73df;
    background: #f8f9fa;
    padding-left: 2rem;
}

.sidebar-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    transition: all 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.active {
        margin-left: 250px;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 950;
    }

    .overlay.active {
        display: block;
    }

    /* Small Phone Optimizations */
    @media (max-width: 576px) {
        .top-navbar {
            padding: 0.5rem 1rem;
        }

        .main-content main {
            padding: 1rem !important;
        }

        .card-body {
            padding: 1rem;
        }

        .btn {
            padding: 0.4rem 0.8rem;
            font-size: 0.9rem;
        }
    }
}

/* Table Responsiveness Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Card Grid for Mobile */
@media (max-width: 768px) {
    .card-columns {
        column-count: 1;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* POS Responsive Helpers */
@media (max-width: 991px) {
    .pos-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow-y: visible !important;
    }

    .cart-panel {
        margin-top: 20px;
    }
}

/* Login Card */
.login-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
}

.login-header {
    background: #4e73df;
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 3rem 2rem;
}