body {
    background-color: #f8f9fa;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}
* {box-sizing: border-box;}

.admin-dashboard, .active-encounters, .synopsis-div {
    padding: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* .stat-card-clear {

    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
} */

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a6cf7;
    margin: 10px 0;
}

.admin-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 70px;
}

.module-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-card h3 {
    color: #333;
    margin-top: 0;
}

.module-card p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.users-table th, .users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.users-table tr:last-child td {
    border-bottom: none;
}

.user-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.user-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.role-badge {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.admin-role {
    background-color: #cce5ff;
    color: #004085;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
}

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

.modal-header h2 {
    margin: 0;
}

.close-button {
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-checkbox-label input {
    margin-right: 8px;
    width: auto;
}

.aid-station-management {
    padding: 20px;
}

.aid-station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aid-station-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aid-station-card h3 {
    margin-top: 0;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
}

.status-enabled {
    background-color: #28a745;
    color: white;
}

.status-disabled {
    background-color: #dc3545;
    color: white;
}

.aid-station-details {
    margin: 10px 0;
}

.aid-station-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}


/* Navigation styles
.navbar {
    background-color: #333;
    overflow: hidden;
    padding: 10px 20px;
}

.navbar a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.navbar .active {
    background-color: #4CAF50;
}

.navbar-right {
    float: right;
} */

/* User info styles */
.user-info {
    color: white;
    padding: 5px 16px;
    float: right;
}

/* Flash messages */
.flash-messages {
    padding: 10px;
    margin: 10px 0;
}

.flash-message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Content container */
.content {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.profile-title {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-size: 2rem;
}

.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-section {
    padding: 25px;
}

.section-title {
    font-size: 1.4rem;
    color: #4a6cf7;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.info-label {
    font-weight: bold;
    width: 150px;
    color: #555;
}

.info-value {
    flex: 1;
    color: #333;
}

.password-form {
    max-width: 100%;
}

.password-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.password-form .btn-primary {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
}

/* Media query for smaller screens */
@media (max-width: 576px) {
    .info-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        width: 100%;
    }
}

div.success-message, .good-field {
    background-color: rgb(25, 135, 84) !important;
    /* color: rgb(250, 250, 250); */
}
  
div.warn-message, .warn-field {
    background-color: rgb(255, 193, 7) !important;
    color: rgb(10, 10, 10);
}
  
div.alert-message, .danger-field {
    background-color: rgb(220, 53, 69) !important;
    color: rgb(250, 250, 250);
}

.critical {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.multiple-encounters {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

/* Active Encounters Table Styles */
.active-encounters-aid, .synopsis {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.active-encounters-aid th, .active-encounters-aid td, .synopsis th, .synopsis td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.active-encounters-aid thead th, .synopsis thead th  {
    background-color: #f8f9fa;
}

.active-encounters-aid th, .synopsis th  {
    font-weight: 600;
}

table.active-encounters-aid tbody tr:nth-child(even) {background-color: #e9ecef;} /* A light gray color for better contrast */
table.synopsis tbody tr:nth-child(even) {background-color: #e9ecef !important;} /* A light gray color for better contrast */

.active-encounters-aid tr:last-child td, .synopsis tr:last-child td {
    border-bottom: none;
}

/* Encounters Table Styles */
.vitals-table-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}
