/* POS System Styles */

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h2 {
    color: #333;
    margin-bottom: 5px;
}

/* General Styles */
body {
    background-color: #f5f5f5;
}

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

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

.card-header {
    font-weight: 600;
}

/* Sales Screen */
.sales-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    position: absolute;
    z-index: 1000;
    width: 100%;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.search-results .list-group-item {
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #eee;
}

.search-results .list-group-item:hover {
    background-color: #f8f9fa;
}

.search-results .list-group-item:last-child {
    border-bottom: none;
}

.totals-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.payment-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.outstanding-positive {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
}

.outstanding-zero {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* Stock Movement Colors */
.movement-adjustment {
    background-color: #8B0000 !important;
    color: #FFFFFF !important;
}

.movement-grv {
    background-color: #ADD8E6 !important;
    color: #000000 !important;
}

.movement-sale-normal {
    background-color: #28a745 !important;
    color: #FFFFFF !important;
}

.movement-sale-override {
    background-color: #FFA500 !important;
    color: #000000 !important;
}

/* Tables */
.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
}

.btn-lg {
    padding: 12px 24px;
}

/* Forms */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
        margin: 20px;
    }
    
    .sales-container {
        padding: 10px;
    }
    
    .totals-box {
        margin-top: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

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

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

/* Invoice Preview */
.invoice-preview {
    background: white;
    padding: 40px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status Badges */
.badge-paid {
    background-color: #28a745;
}

.badge-pending {
    background-color: #ffc107;
    color: #000;
}

.badge-cancelled {
    background-color: #dc3545;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}