/* --- General and Authentication Styles (Authentication styles removed) --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #333;
    display: flex; /* Ensure the app container takes full height */
    min-height: 100vh;
}

/* --- Main App Styles (GREEN THEME) --- */
#app-container { 
    display: flex; /* Changed from 'none' to 'flex' */
    flex-direction: row; 
    width: 100%; 
    height: 100vh; 
}
.sidebar { width: 250px; background: #145A32; color: white; padding: 20px; display: flex; flex-direction: column; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); }
.sidebar h2 { text-align: center; font-size: 24px; margin-bottom: 20px; }
.sidebar button { width: 100%; padding: 15px; margin: 8px 0; background: #1E8449; color: white; font-size: 16px; border: none; border-radius: 8px; cursor: pointer; text-align: left; transition: background 0.3s ease; }
.sidebar button:hover { background: #27AE60; }
/* .sidebar .logout is removed as there is no logout functionality */
.main-content { flex: 1; display: flex; flex-direction: column; padding: 20px; background: #f5fff5; overflow-y: hidden; }
#content-section { background: white; padding: 20px; border-radius: 8px; flex-grow: 1; overflow-y: auto; }
header { background: linear-gradient(to right, #145A32, #27AE60); color: white; padding: 15px; text-align: center; font-size: 26px; font-weight: bold; border-radius: 8px; margin-bottom: 20px; }
footer { background: #145A32; color: white; text-align: center; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 16px; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 12px; text-align: center; font-size: 15px; }
th { background: #27AE60; color: white; }
tr:nth-child(even) { background-color: #f9f9f9; }
.action-btn { padding: 6px 12px; margin: 0 4px; border: none; border-radius: 5px; cursor: pointer; color: white; font-weight: bold; font-size: 14px; transition: opacity 0.3s ease; }
.action-btn.edit { background-color: #3498DB; }
.action-btn.delete { background-color: #E74C3C; }
.action-btn.print { background-color: #2ECC71; }
.action-btn:hover { opacity: 0.85; }
.patient-form { display: grid; grid-template-columns: auto 1fr; gap: 20px 15px; background: #e8f8e8; padding: 30px; border-radius: 8px; margin-bottom: 20px; }
.patient-form label { font-weight: bold; font-size: 18px; display: flex; align-items: center; }
.patient-form input { padding: 15px; font-size: 16px; border-radius: 8px; border: 1px solid #ccc; }
.patient-form div { display: flex; align-items: center; gap: 20px; }
.form-submit-btn { padding: 12px 30px; font-size: 18px; font-weight: bold; background: #1E8449; color: white; border: none; border-radius: 8px; cursor: pointer; transition: background 0.3s ease; margin-top: 10px; }
.form-submit-btn:hover { background: #27AE60; }
.summary-card { background: #e0f2f1; border-left: 5px solid #145A32; margin-top: 20px; padding: 25px; border-radius: 8px; }
.summary-card h4 { font-size: 20px; color: #333; margin: 15px 0; display: flex; justify-content: space-between; }
.summary-card h3 { font-size: 24px; color: #145A32; margin-top: 20px; border-top: 1px solid #ccc; padding-top: 20px; display: flex; justify-content: space-between; }
.print-only { display: none; }
@media print { body * { display: none; } .print-only, .print-only * { display: block; } #print-receipt { padding: 20px; border: 2px solid #333; } }