/* assets/css/style.css */
body {
    background-color: #f0f4f8; /* Soft modern light background */
    font-family: 'Outfit', sans-serif;
    color: #334155;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar Styling - Premium Gradient */
.sidebar {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    min-height: 100vh;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.sidebar .nav-link {
    color: #c7d2fe;
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: inset 4px 0 0 #818cf8;
}

/* Content Area */
.content-wrapper {
    padding: 30px 40px;
    background-color: #f0f4f8;
}

/* Glassmorphism Cards */
.card, .glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* POS specific Product Card */
.product-card {
    cursor: pointer;
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card h6 {
    font-weight: 600;
    color: #1e293b;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Modals with Glassmorphism */
.modal-content.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table th {
    font-weight: 600;
    color: #64748b;
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.table td {
    background: #ffffff;
    vertical-align: middle;
    border: none;
}

.table tbody tr {
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    z-index: 10;
    position: relative;
}

.table td:first-child, .table th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table td:last-child, .table th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Inputs */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Dashboard Cards specific */
.dash-card {
    border-radius: 20px;
    color: white;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.dash-card::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.bg-gradient-primary { background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%); }
.bg-gradient-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-gradient-info { background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%); }
