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

.container {
    max-width: 1200px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
    border-radius: 10px 10px 0 0 !important;
}

.table {
    margin-bottom: 0;
}

.alert {
    border-radius: 5px;
}

.btn {
    border-radius: 5px;
}

.form-control {
    border-radius: 5px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dashboard summary cards */
.card.text-white .card-header {
    font-weight: bold;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

/* Sidebar navigation (if added later) */
.sidebar {
    background-color: #343a40;
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

.sidebar a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main content area when using sidebar */
.main-content {
    margin-left: 250px;
    padding: 20px;
}

/* Alert messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Product status indicators */
.low-stock {
    color: #dc3545;
    font-weight: bold;
}

.in-stock {
    color: #28a745;
}

/* Action buttons */
.action-btns .btn {
    margin-right: 5px;
}

/* Landing page styles */
.landing-page {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
}

.landing-page .card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
}

.landing-page .feature-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-page .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.landing-page .display-4 {
    font-weight: 700;
    color: #343a40;
}

.landing-page .lead {
    color: #6c757d;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Barcode Scanner Styles */
#scanner-container {
    position: relative;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #000;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #00ff00;
    animation: scanLine 2s infinite linear;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

.scanner-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #00ff00;
    border-style: solid;
}

.scanner-corner-tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.scanner-corner-tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.scanner-corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.scanner-corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* Camera permission message */
.camera-permission {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
}