body {
    background-color: #f8f9fa;
}
.container {
    margin-top: 20px;
}
.table-responsive {
    margin-top: 20px;
}
.billing-table th, .billing-table td {
    vertical-align: middle;
}
.searchable-select {
    width: 100%;
}
.print-page {
    width: 148mm; /* A5 landscape width */
    height: 210mm; /* A5 landscape height */
    margin: 0 auto;
    padding: 10mm;
    background: white;
    font-size: 12pt;
}
.customer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.customer-details p {
    margin: 0;
    flex: 1 1 45%;
}
.unit-type-select {
    width: 100px;
}
/* Existing styles (e.g., for print pages and list tables) */
.print-page {
    padding: 20px;
    background: #fff;
}
@media print {
    .no-print {
        display: none !important;
    }
}

/* Existing table styles for list pages */
.table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-bottom: 20px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(243, 244, 246, 0.8);
}

.table-striped tbody tr:hover {
    background-color: rgba(229, 231, 235, 0.8);
}

.table th, .table td {
    padding: 12px;
    vertical-align: middle;
    border-color: #e9ecef;
}

.table th {
    background: linear-gradient(90deg, #ff6f61, #ff8e53);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.table td {
    color: #333;
}

.table .btn {
    border-radius: 8px;
    padding: 6px 12px;
    transition: transform 0.2s, background 0.3s;
}

.table .btn-primary {
    background: #ff6f61;
    border: none;
}

.table .btn-primary:hover {
    background: #e65b50;
    transform: scale(1.05);
}

.table .btn-warning, .table .btn-danger {
    border: none;
}

.table .btn-warning:hover {
    background: #e0a800;
    transform: scale(1.05);
}

.table .btn-danger:hover {
    background: #c82333;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .table th, .table td {
        padding: 8px;
    }
    .table .btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}

/* New styles for login page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../images/pharmacy-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: fallback-gradient(135deg, #f5f7fa, #c3cfe2); /* Fallback gradient */
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.login-card .card-header {
    background: linear-gradient(90deg, #ff6f61, #ff8e53); /* Coral to orange gradient */
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-radius: 20px 20px 0 0;
    margin: -30px -30px 20px -30px; /* Extend header to edges */
}

.login-card .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-card .form-control:focus {
    border-color: #ff6f61;
    box-shadow: 0 0 8px rgba(255, 111, 97, 0.3);
}

.login-card .btn-primary {
    background: #ff6f61;
    border: none;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
}

.login-card .btn-primary:hover {
    background: #e65b50;
    transform: scale(1.05);
}

.login-card .alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.login-card img.logo {
    display: block;
    margin: 0 auto 20px;
    width: 80px;
    height: auto;
}

@media (max-width: 576px) {
    .login-card {
        padding: 20px;
        margin: 10px;
    }
    .login-card .card-header {
        font-size: 1.25rem;
        padding: 10px;
        margin: -20px -20px 15px -20px;
    }
    .login-card .form-control, .login-card .btn-primary {
        padding: 10px;
        font-size: 1rem;
    }
}

:root {
    --bs-primary-rgb: 0, 150, 136; /* Teal color - commonly associated with healthcare */
    --bs-primary: #009688;
    --bs-primary-dark: #00796b;
    --bs-primary-light: #b2dfdb;
}

/* Update all primary color references */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: var(--bs-primary-dark);
    border-color: var(--bs-primary-dark);
}

.table th {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-primary-dark));
}

.login-card .card-header {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-primary-dark));
}

/* Update other primary color references throughout your CSS */
.table .btn-primary {
    background: var(--bs-primary);
}

.table .btn-primary:hover {
    background: var(--bs-primary-dark);
}

.login-card .btn-primary {
    background: var(--bs-primary);
}

.login-card .btn-primary:hover {
    background: var(--bs-primary-dark);
}

.login-card .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 8px rgba(0, 150, 136, 0.3);
}
