/* File: assets/css/style.css */
/* Custom styles for Grocery Store Billing System */

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

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

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.bg-success {
    background-color: #28a745 !important;
}

/* Dashboard cards */
.card.bg-primary { background: linear-gradient(45deg, #007bff, #0056b3); }
.card.bg-success { background: linear-gradient(45deg, #28a745, #1e7e34); }
.card.bg-warning { background: linear-gradient(45deg, #ffc107, #e0a800); }
.card.bg-info { background: linear-gradient(45deg, #17a2b8, #138496); }

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .table-bordered {
        border: 1px solid #dee2e6 !important;
    }
    
    .table-bordered th,
    .table-bordered td {
        border: 1px solid #dee2e6 !important;
    }
}

/* Bill items table */
#billItemsTable {
    font-size: 0.9rem;
}

#billItemsTable th {
    background-color: #e9ecef;
    border-bottom: 2px solid #dee2e6;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

/* Badge styles */
.badge {
    font-size: 0.75em;
    padding: 0.4em 0.6em;
}

/* Custom utilities */
.min-vh-100 {
    min-height: 100vh;
}

.text-success {
    color: #28a745 !important;
}

.border-bottom {
    border-bottom: 1px solid #e9ecef !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}