/* General Styles */
body {
    font-family: "Lato", sans-serif;
    /* Clean sans-serif font for overall text */
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #002855;
    /* Dark blue for text */
}

.container {
    padding: 30px;
}

/* Page Wrapper */
.page-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    /* Light gray for subtle contrast */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    /* Soft border for definition */
}

/* Header */
h1 {
    font-family: "Lato", sans-serif;
    color: #002855;
    margin-bottom: 20px;
    text-align: center;
}

/* Search Bar */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1 1 200px;
    /* Flexible input field size */
    min-width: 150px;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Shared Button Styles */
button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Search Button */
#searchBtn {
    background-color: #d89099;
    /* Dusty Rose */
    color: white;
}

#searchBtn:hover {
    background-color: #b56a74;
    /* Slightly darker pink on hover */
}

/* Clear Button */
#searchBtn.clear-button {
    background-color: #e0a6ad;
    /* Muted pink for clear button */
}

#searchBtn.clear-button:hover {
    background-color: #c2858f;
    /* Darker muted pink on hover */
}

/* Card-Like Styling */
.card {
    background-color: #ffffff;
    /* White card background */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    padding: 20px;
    font-family: "Lato", Arial, sans-serif;
    /* Clean sans-serif font */
    color: #333333;
    /* Charcoal text */
    margin: 0 auto;
    /* Center align the card */
}

.card-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    /* Subtle neutral divider */
}

.card-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    /* Dark charcoal for titles */
    margin: 0;
}

/* Modal Styles (Details Modal) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
    width: 520px;
    /* Default width for details modal */
}

.modal h2 {
    margin: 0 0 10px;
    color: #002855;
    font-size: 20px;
    text-align: center;
}

/* Details Modal */
.details-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.details-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 60px 30px;
    border-radius: 10px;
    width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.details-modal-content h2 {
    text-align: center;
    color: #002855;
}

.details-content {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.details-column {
    flex: 1;
}

.details-column p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

/* Footer */
.site-footer {
    background-color: #f9f9f9;
    padding: 30px 15px;
    font-family: "Lato", sans-serif;
    color: #002855;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-sections {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    text-align: left;
    flex: 0 0 300px;
    padding-right: 20px;
    border-right: 1px solid #e0e0e0;
}

.contact-info h3 {
    color: #002855;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #002855, #d89099);
}

.contact-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-disclaimer {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding-left: 20px;
    margin-top: 40px;
}

.footer-content p {
    margin: 10px 0;
    line-height: 1.6;
    font-size: 14px;
}

.footer-content .copyright {
    font-size: 14px;
    margin-bottom: 15px;
    color: #002855;
}

.footer-content .disclaimer {
    font-size: 13px;
    color: #555;
    max-width: 600px;
    line-height: 1.7;
}

.footer-content a {
    color: #d89099;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #b56a74;
}

@media (max-width: 768px) {
    .site-footer {
        text-align: left;
        padding: 25px 15px;
    }

    .footer-sections {
        flex-direction: column;
        gap: 25px;
    }

    .contact-info {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .footer-disclaimer {
        width: 100%;
        padding-left: 0;
        padding-top: 5px;
    }

    .footer-content p {
        margin: 5px 0;
        font-size: 13px;
    }

    .footer-content .disclaimer {
        font-size: 12px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .search-bar input,
    .search-bar button {
        width: 100%;
    }

    .page-wrapper {
        padding: 10px;
    }

    .modal-content {
        width: 90%;
    }
}


/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.details-btn,
.edit-btn,
.delete-btn {
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Details Button - Blue (Matches Search Button) */
.details-btn {
    background-color: #4a90e2; /* Blue for Details */
}

.details-btn:hover {
    background-color: #003f8a; /* Darker blue on hover */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Edit Button - Dusty Rose (Soft Pink) */
.edit-btn {
    background-color: #d89099; /* Dusty Rose for Edit */
}

.edit-btn:hover {
    background-color: #b56a74; /* Slightly darker pink */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Delete Button - Muted Red */
.delete-btn {
    background-color: #e74c3c; /* Soft Red */
}

.delete-btn:hover {
    background-color: #c0392b; /* Darker muted red */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* General Form Styling */
.password-form {
    max-width: 400px;
    margin: 2rem auto; /* Center the form on the page */
    padding: 1.5rem;
    background-color: #f9f9f9; /* Light background for the form */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* Label Styling */
.password-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    color: #333;
}

/* Input Fields */
.password-form input[type="text"],
.password-form input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Focus Effect */
.password-form input[type="text"]:focus,
.password-form input[type="password"]:focus {
    border-color: #0078d7; /* Blue border on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.3);
}

/* Submit Button */
.password-form .styled-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #0078d7; /* Blue background */
    color: #fff;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-form .styled-button:hover {
    background-color: #005bb5; /* Darker blue on hover */
}

/* Error Message */
.password-form .error-message {

    font-size: 0.9rem;
    color: #d9534f; /* Red for errors */
}


/* Responsive Design */
@media (max-width: 600px) {
    .password-form {
        padding: 1rem;
    }
}

/* Form Validation Styles */
.form-error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px;
    background-color: #ffe6e6;
    border-radius: 4px;
    display: none;
}

.invalid {
    border-color: #d9534f !important;
    background-color: #fff5f5 !important;
}

/* Form Field Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Duplicate Warning Styles */
.duplicate-warnings {
    margin: 15px 0;
}

.duplicate-warning {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.duplicate-warning.name {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.duplicate-warning.nameDob {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.duplicate-warning.nameDobDod {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.duplicate-warning.nameDod {
    background-color: #e2e3e5;
    border: 1px solid #d6d8db;
    color: #383d41;
}

/* Duplicate Confirmation Styles */
.duplicate-confirmation {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.duplicate-confirmation p {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.confirm-submit,
.cancel-submit {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-submit {
    background-color: #28a745;
    color: white;
}

.confirm-submit:hover {
    background-color: #218838;
}

.cancel-submit {
    background-color: #6c757d;
    color: white;
}

.cancel-submit:hover {
    background-color: #5a6268;
}

/* Update existing invalid field styles */
#uploadForm .form-group input.invalid,
#uploadForm .form-group select.invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
