/* Custom styles for PDV System */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #28a745 !important; /* Green header */
}

.btn-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-primary:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.text-primary {
    color: #28a745 !important;
}

.cart-section {
    height: 100vh;
    overflow-y: auto;
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.cart-item:last-child {
    border-bottom: none;
}

.receipt-content {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.receipt-item {
    border-bottom: 1px dashed #ccc;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.receipt-item:last-child {
    border-bottom: none;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
}

.modal-content {
    border-radius: 12px;
}

.btn {
    border-radius: 6px;
}

.form-control, .form-select {
    border-radius: 6px;
}

.alert {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-section {
        height: auto;
        min-height: 50vh;
    }

    .product-card {
        margin-bottom: 10px;
    }
}

/* Animation for cart updates */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-item {
    animation: fadeIn 0.3s ease-in;
}

/* Custom scrollbar */
.cart-section::-webkit-scrollbar {
    width: 6px;
}

.cart-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.cart-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}