/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

/* Login Styles */
.login-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    margin: 100px auto;
}

.logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

h1 {
    color: #c41230;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    color: #c41230;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1rem;  /* Default size is 1.5rem, reducing by 33% */
}

.login-form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="password"] {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me label {
    margin-left: 0.5rem;
}

button {
    background-color: #c41230;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #a30f28;
}

.forgot-password {
    display: inline-block;
    margin-top: 1rem;
    color: #0056b3;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    background: white url('rfmx-network-logo.gif') no-repeat left center;
    background-size: contain;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 80px;
    overflow: hidden;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

header h1 {
    margin: 0;
    padding: 0.25rem;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    height: 25px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li:last-child {
    position: absolute;
    right: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.7em;
}

.main-nav ul li a:hover {
    color: #c41230;
}


/* Dashboard Content Styles */
.dashboard-content {
    padding: 0.5rem 2rem 2rem 2rem;
}

.chart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1800px;
    margin: 0 auto;
}

.chart-container .chart-wrapper {
    width: 33.75%;  /* Reduced from 45% */
    max-width: 600px;  /* Reduced from 800px */
    margin-bottom: 2rem;
}

.chart-container canvas {
    width: 100%;
    height: auto;
}

/* KPI Styles */
.kpi-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.kpi {
    background-color: white;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: calc(16.66% - 0.5rem);
    text-align: center;
}

.kpi h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #c41230;
    font-size: 0.9rem;
}

.kpi p {
    margin: 0;
    font-size: 0.8rem;
}

.data-table-container {
    width: 95%;
    margin: 0;
}

.table-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.top-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ehr-radio-group {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.ehr-radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #333;
}

.ehr-radio-label input[type="radio"] {
    margin: 0;
}

.top-filters select {
    background-color: #ffebee;
    border: 1px solid #c41230;
    padding: 5px;
    border-radius: 4px;
    color: #c41230;
    font-weight: bold;
}

.top-filters select:hover {
    background-color: #ffcdd2;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-actions {
    display: flex;
    gap: 10px;
}

#patientDataTable {
    width: 100%;
    border-collapse: collapse;
}

#patientDataTable th,
#patientDataTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 10px;
}

#patientDataTable th {
    background-color: #003087;
    color: white;
}

#patientDataTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.pagination button {
    padding: 5px 10px;
    background-color: #003087;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #002266;
}

.pagination #pageInfo {
    margin: 0 10px;
    font-size: 14px;
}

/* Admin Portal Styles */
#userTable {
    width: 100%;
    border-collapse: collapse;
}

#userTable th,
#userTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#userTable th {
    background-color: #f2f2f2;
}

#addUserBtn,
#resetPasswordBtn {
    margin-bottom: 1rem;
}
