body {
    body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
}

.banner {
    position: relative;
    width: 101%;
    height: 150px;
    top: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f0f0;
}

.banner-image {
    max-width: 101%;
    max-height: 200%; 
    object-fit: contain;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ministry-logo, .notary-image {
    max-width: 100%;
    max-height: 200%;
}
.back-button {
    margin-top: 20px;
    padding: 8px 15px;
    cursor: pointer;
}

.login-button {
    margin-top: 0px;
    padding: 8px 15px;
    cursor: pointer;
    position: absolute;
  top: 1px; 
  right: 1px;     
  background-color: #4136e2;
  color: white;
  border: none;
  border-radius: 5px;
}
h1 {
    text-align: center;
}

h2 {
    text-align: center;
}
h6 {
    text-align: center;
}

form {
    width: 80%;
    max-width: 600px; 
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}


table {
    border-collapse: collapse;
    width: 120%; 
    margin-top: 10px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

input, select, button {
    margin: 5px;
    padding: 8px;
}

#formArea {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

#editForm label {
    display: inline-block;
    width: 100px;
    text-align: left;
    margin-right: 10px;
}

#editForm input[type="text"],
#editForm input[type="date"],
#editForm select {
    width: calc(100% - 120px);
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#editForm button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

#editForm button:hover {
    background-color: #0056b3;
}

.top-bar {
    display: flex;
    /* Use space-between to push the menu-bar to one end and the title to the other */
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; 
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
    min-height: 80px;

    /* Background Image Properties */
    background-image: url('images/Primature.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #f0f0f0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Style for the new menu-bar div */
.menu-bar {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.top-bar button {
    padding: 8px 15px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid #007bff;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.top-bar button:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Darker on hover */
}

/* Style the Admin Dashboard title */
.top-bar h2 {
    margin: 0; 
    font-size: 1.8em; 
    
}

#dashboard-area {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
    height: auto;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around; 
    align-items: flex-start; 
    gap: 0px; 
}

.chart-container {
    margin: 0; 
    padding: 15px; 
    background-color: #fff; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; 
    flex-direction: column;
    align-items: center;
    min-width: 320px; 
}


#genderChart-container { 
    flex: 1 1 350px; 
    max-width: 400px; 
    
}

/* Width for the district chart container */
#districtChart-container { 
    flex: 2 1 600px; 
    max-width: calc(100% - 20px); 
    height: 400px;
}

#genderChart, #districtChart {
    width: 100% !important;
    height: auto !important;
    max-height: 350px;
}

.chart-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
    text-align: center;
}

#total-notaries-message {
    margin: 10px 0px 10px -300px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    display: block;
    width: 100%;
    flex-basis: 100%;
}

.sort-icon {
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: middle;
}

th {
    cursor: pointer; 
    user-select: none; 
}

.search-container {
    position: relative; 
    display: inline-flex; 
    align-items: center; 
    margin-bottom: 20px; 
    gap: 10px; 
}

/* Style the search input itself */
#adminSearchInput {
    padding: 10px 35px 10px 10px; 
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    flex-grow: 1;
}

/* Style for the search icon */
.search-icon {
    position: absolute; 
    right: 10px;        
    color: #888;       
    pointer-events: none; 
    font-size: 1.2em;  
}
.search-container strong {
    white-space: nowrap; 
}
 
table {
    width: 100%;
    border-collapse: collapse; 
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

th, td {
    padding: 10px 15px;
    border: 1px solid #ddd; 
    text-align: left;
}

/* --- Header Styles --- */
#notaryTable thead th,
#adminTable thead th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative; 
}

.sort-icon {
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 5px;
}


/* --- Zebra Striping (Alternating Row Colors) --- */
#notaryTable tbody tr:nth-child(odd),
#adminTable tbody tr:nth-child(odd) {
    background-color: #f9f9f9; 
}

#notaryTable tbody tr:nth-child(even),
#adminTable tbody tr:nth-child(even) {
    background-color: #ffffff; 
}

/* --- Hover Effect --- */
#notaryTable tbody tr:hover,
#adminTable tbody tr:hover {
    background-color: #e6f7ff; 
    cursor: pointer; 
}

.search-container {
    margin-bottom: 20px;
    text-align: right;
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
    gap: 10px; 
}

.search-container input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    font-size: 1em;
}

.search-container .search-icon {
    color: #555;
}

/* Styles for the pagination controls */
#public-pagination,
#admin-pagination { 
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
}

#public-pagination button,
#admin-pagination button {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#public-pagination button:hover:not(:disabled),
#admin-pagination button:hover:not(:disabled) {
    background-color: #0056b3;
}

#public-pagination button:disabled,
#admin-pagination button:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

#public-pagination span,
#admin-pagination span {
    font-weight: bold;
    margin: 0 10px;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%; 
    margin: auto; 
    text-align: center;
    flex-grow: 1; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
}

.login-container h2 {
    color: #007bff; 
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form elements */
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 100%; 
    box-sizing: border-box; 
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.login-container button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
}

.login-container button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px); 
}

.login-container .error-message {
    color: #dc3545; 
    font-weight: bold;
    margin-top: 20px;
    display: none; 
}


footer {
    width: 100%;
    padding: 20px;
    background-color: #343a40; 
    color: #f8f9fa; 
    text-align: center;
    font-size: 0.9em;
    margin-top: 50px; 
    box-sizing: border-box;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #8ac0ff; 
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #aae0ff;
    text-decoration: underline;
}
.back-home-button {
    display: inline-block; 
    margin-top: 5px; 
    padding: 10px 20px;
    background-color: #737476; 
    color: white;
    text-decoration: none; 
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-size: 1em;
    width: 100%; 
    box-sizing: border-box;
}

.back-home-button:hover {
    background-color: #4f7089; 
    transform: translateY(-1px);
}

/* === CSS for Disable Notary Modal === */

#disable-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#disable-modal {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
}

#disable-modal h2 {
    margin-top: 0;
    color: #333;
}

#disable-modal p {
    color: #666;
}

#disable-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #555;
}

#disable-form select,
#disable-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#punishment-fields {
    margin-top: 10px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal-actions button[type="submit"] {
    background-color: #d9534f; 
    color: white;
}

.modal-actions button[type="button"] {
    background-color: #f0f0f0;
    color: #333;
}

.modal-error-message {
    color: #d9534f;
    margin-top: 10px;
    font-weight: bold;
    min-height: 1em;
}


/* A general style for buttons in the menu bar for consistency */
.menu-bar button {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

/* Style for the "Disabled Notaries" button */
.menu-bar .btn-disabled {
    background-color: #d9534f; /* A strong but professional red */
    border-color: #d43f3a;
    color: white;
}

.menu-bar .btn-disabled:hover {
    background-color: #c9302c; 
    border-color: #ac2925;
}

/* Style for the "Admin Login" button */
.menu-bar .btn-admin {
    background-color: #337ab7;
    border-color: #2e6da4;
    color: white;
}

.menu-bar .btn-admin:hover {
    background-color: #286090; 
    border-color: #204d74;
}

#adminTable th,
#adminTable td {
    padding: 6px 10px; 
    font-size: 1em; 
    vertical-align: middle; 
}

/* Reduce size of action buttons within the admin table */
#adminTable td button {
    padding: 4px 8px;
    font-size: 0.85em;
    margin: 2px;
}
