/* POS System Custom Styles */

/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #eee;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

/* POS Terminal */
.pos-product-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 2px solid transparent;
}

.pos-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

.pos-product-card img {
    height: 100px;
    object-fit: contain;
    padding: 5px;
}

.pos-product-card .card-body {
    padding: 0.5rem;
}

/* Cart Table */
.cart-table th,
.cart-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Scanner Input */
.scanner-input {
    border: 2px solid #0d6efd;
    font-size: 1.1rem;
    font-weight: bold;
}

.scanner-input:focus {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.35);
}

/* Quick Cash Buttons */
.quick-cash-btn {
    min-width: 70px;
}

/* Stat Cards */
.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card i {
    opacity: 0.8;
}

/* Report Cards */
.report-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Table Styling */
.table-hover tbody tr:hover {
    background-color: rgba(13,110,253,0.04);
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
}

/* Form Controls in POS */
.pos-search {
    border-radius: 25px;
    padding-left: 1rem;
}

/* Product Image Thumbnails */
.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

/* Stock Badge Animations */
.stock-critical {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Print Styles */
@media print {
    .navbar, .no-print, .btn {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Login Page */
.login-card {
    max-width: 450px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pos-product-card img {
        height: 70px;
    }
    
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}
