body {
    font-family: 'Pyidaungsu', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    gap: 50px;
}
.header-text {
    flex-grow: 0;
}
.header h1 {
    margin: 5px 0;
    font-size: 22px;
    color: #0056b3;
    font-weight: bold;
}
.header-logo {
    width: 80px;
    height: auto;
}
.top-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}
.pdf-button, .admin-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Pyidaungsu', sans-serif;
    transition: background-color 0.3s ease;
}
.admin-btn {
    background-color: #dc3545;
}
.pdf-button:hover {
    background-color: #218838;
}
.admin-btn:hover {
    background-color: #c82333;
}
.summary-container {
    background-color: #e9f5ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.summary-item {
    font-size: 18px;
    color: #0056b3;
}
.summary-item strong {
    font-weight: bold;
    margin-left: 8px;
}
#results {
    overflow-x: auto;
}
#bill-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
#bill-table th, #bill-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
#bill-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}
#bill-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
#bill-table tr:hover {
    background-color: #e2eef7;
}
.filter-row td {
    padding: 8px;
    background-color: #e9f5ff;
}
.filter-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Pyidaungsu', sans-serif;
    background-color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}
.edit-modal-content {
    max-width: 600px;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}
.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.admin-header h2 {
    margin: 0;
    color: #0056b3;
}
.logout-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Pyidaungsu', sans-serif;
}
.logout-btn:hover {
    background-color: #5a6268;
}
.data-entry-section, .data-management-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.data-entry-section h3, .data-management-section h3 {
    margin-top: 0;
    color: #0056b3;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    flex: 1;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Pyidaungsu', sans-serif;
}
.bill-entry-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    align-items: center;
}
.bill-entry-row label {
    font-weight: bold;
    font-size: 14px;
}
.bill-entry-row input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Pyidaungsu', sans-serif;
}
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}
.login-btn, .save-btn, .load-btn, .download-btn, .edit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Pyidaungsu', sans-serif;
    font-size: 14px;
    color: white;
}
.login-btn, .save-btn {
    background-color: #007bff;
}
.load-btn {
    background-color: #17a2b8;
}
.download-btn {
    background-color: #28a745;
}
.edit-btn {
    background-color: #ffc107;
    color: #212529;
    padding: 5px 10px;
    font-size: 12px;
}
.login-btn:hover, .save-btn:hover {
    background-color: #0056b3;
}
.load-btn:hover {
    background-color: #138496;
}
.download-btn:hover {
    background-color: #218838;
}
.edit-btn:hover {
    background-color: #e0a800;
}
.admin-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
#recordListContainer .record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
#recordListContainer .record-item:last-child {
    border-bottom: none;
}
#editFieldsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}
.edit-field-group {
    display: flex;
    flex-direction: column;
}
.edit-field-group label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}
.edit-field-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Pyidaungsu', sans-serif;
}

@media print {
    body { padding: 0; background-color: #fff; }
    .container { box-shadow: none; padding: 0; }
    .top-controls, .filter-row, .admin-btn { display: none; }
    .header h1 { font-size: 16pt; }
    #bill-table th, #bill-table td { padding: 8px; font-size: 10pt; }
    .admin-panel, .modal { display: none !important; }
}
/* Add this to the end of your style.css file for notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background-color: #007bff; /* Default info color */
    color: white;
    font-family: 'Pyidaungsu', sans-serif;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(calc(100% + 20px));
    transition: transform 0.5s ease-in-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #28a745; /* Green for success */
}

.notification.error {
    background-color: #dc3545; /* Red for error */
}
/* Add this to the end of your style.css file for the save button indicator */
.download-btn.unsaved-changes {
    background-color: #ffc107; /* Yellow warning color */
    color: #212529;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
