/*
 * Styles for the Organizational Chart Update Form and Employee Pages.
 */

/* General Body Styles - you might want to keep one in your main style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    margin: 0;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 1.5s forwards; /* Animate the body when the page loads */
}

/* Animate the body when the page loads */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Blurred background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Appear behind all over elements */
    background: url("../img/Update_Employee_Backdrop.jpg") no-repeat center center;    
    background-size: cover;
    filter: blur(0px);
    transform: scale(1.025);
}

/* --- Form Styles (from update_form.php) --- */
.container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container h2 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="password"],
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    border: 1px solid #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.error {
    color: #d9534f;
    font-size: 0.9em;
}

.btn {
    display: block;
    width: 100%;
    background-color: #004a8c;
    color: white;
    padding: 10px;
    margin: 10px 0px 10px 0px;
    border: none;
    border-radius: 15px;
    box-sizing: border-box;
    cursor: pointer;
    font-size: 16px;
    text-align: center; /* Added for consistency */
    text-decoration: none; /* For <a> tags styled as buttons */
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2196F3;
}


/* --- Profile Card Styles (from employee.php) --- */
.profile-card {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.profile-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #4a69bb;
    color: white;
}

.profile-pfp {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.profile-job {
    font-size: 18px;
    font-weight: 300;
}

.profile-body {
    padding: 30px;
}

.section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.profile-body ul {
    list-style-type: none;
    padding-left: 0;
}

.profile-body li {
    background-color: #f9f9f9;
    border-left: 3px solid #4a69bb;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 0px 10px 10px 0px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.not-found {
    text-align: center;
    padding: 50px;
}

.back-link {
    display: flex;
    margin: 0 auto;
    margin-top: 20px;
    color: #4a69bb;
    text-decoration: underline;
    color: #2196F3;
    width: fit-content;
    font-weight: bold;

}

.last-modified p {
    color: white;
}

.footer .validation, .footer .last-modified {
    text-align: center;
    margin-bottom: 10px;
}

.footer .logout-link {
    text-align: center;
    margin-bottom: 10px;
}

.footer .logout-link a {
    color: white;
    font-weight: bold;
}

a.comment {
    color: white;
    /* Override any other styling */
    -webkit-text-fill-color: white;
    text-decoration: none;

}


#employee_id, #job, #department, #interests, #goal {
    border: 0px transparent;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s, border-color 0.3s;
}

body.dark-mode #employee_id {
    background-color: #1e1e1e;
    color: #fff;
    border: 0px;
}

body.dark-mode #job {
    background-color: #1e1e1e;
    color: #fff;
    border: 0px;
}

body.dark-mode #department {
    background-color: #1e1e1e;
    color: #fff;
    border: 0px;
}

body.dark-mode #interests {
    background-color: #1e1e1e;
    color: #fff;
    border: 0px;
}

body.dark-mode #goal {
    background-color: #1e1e1e;
    color: #fff;
    border: 0px;
}

.profile-name {
    color: #fff;
}

body.dark-mode .profile-body {
    background-color: #1e1e1e;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .profile-body li {
    background-color: #2c2c2c;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}