
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0; 
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.app-header {
    background-color: #343a40;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.app-footer {
    background-color: #343a40;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin-top: auto; 
}

.main-content {
    flex-grow: 1; 
    padding: 20px 0; 
}

.container {
    background-color: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; 
    padding: 20px;
    box-sizing: border-box;
}



.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}


.title-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title {
    font-size: 1.5em;
    font-weight: 500;
    color: #333;
    padding: 0 5px 10px 0;
    border-bottom: 3px solid black; 
    color: black;
}

.add-new-btn {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.add-new-btn:hover {
    background-color: green;
}

.grid-icon {
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
}

.alert-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    font-size: 0.9em;
}

.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.normal-prescriptions-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.normal-prescriptions-btn:hover {
    background-color: #5a6268;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
    font-size: 1em;
}

.search-btn, .clear-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.search-btn {
    background-color: #00baff;
    color: white;
}

.search-btn:hover {
    background-color: #00baff;
}

.clear-btn {
    background-color: #e9ecef;
    color: #495057;
}

.clear-btn:hover {
    background-color: #dae0e5;
}

.prescriptions-table {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.header-row {
    background-color: #f8f9fa;
    font-weight: bold;
    text-transform: uppercase;
    color: #555;
    font-size: 0.85em;
}

.table-cell {
    padding: 12px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox-cell { width: 5%; text-align: center; }
.patient-cell { width: 30%; }
.medication-cell { width: 30%; }
.last-updated-cell { width: 20%; }
.status-cell { width: 15%; }

.empty-state-row {
    background-color: #fff;
    border: none;
}

.no-pending-cell {
    width: 100%;
    text-align: left;
    color: #6c757d;
    font-style: italic;
    padding-left: calc(5% + 12px);
}