body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f7;
    color: #1d1d1f;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark-mode {
    background-color: #1c1c1e;
    color: #f5f5f7;
}
header {
    background-color: #9B2A2A;
    color: white;
    text-align: center;
    padding: 2em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}
nav {
    background-color: #B33A3A;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links {
    display: flex;
    gap: 1.5em;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}
nav a:hover {
    opacity: 0.8;
}
.container {
    max-width: 900px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
body.dark-mode .container {
    background-color: #2c2c2e;
}

.employee_container {
    max-width: 1300px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
body.dark-mode .employee_container {
    background-color: #2c2c2e;
}

.home-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2em;
    gap: 2em;
    flex-wrap: wrap;
}
.text-column {
    display: flex;
    flex-direction: column;
    gap: 3.5em;
    flex: 1;
    min-width: 300px;
}
.image-column {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2em;
    gap: 2em;
    flex-wrap: wrap;
}
.home-layout .container {
    max-width: 800px;
    margin: 0;
}
.image-section {
    flex: 1;
    min-width: 300px;
    text-align: center;
    gap: 2em;
}
.home-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
h1, h2 {
    text-align: center;
    font-weight: 600;
}
h1 {
    font-size: 2.5em;
}
p {
    line-height: 1.6;
    color: #515154;
}
body.dark-mode p {
    color: #d1d1d6;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
label {
    font-weight: 600;
    font-size: 0.9em;
    color: #1d1d1f;
}
body.dark-mode label {
    color: #f5f5f7;
}
input, select, textarea {
    padding: 0.8em;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    background-color: #f5f5f7;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.3s ease;
}
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background-color: #3a3a3c;
    border-color: #4a4a4c;
    color: #f5f5f7;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #B33A3A;
}
button {
    background-color: #9B2A2A;
    color: white;
    padding: 0.9em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
button:hover {
    background-color: #B33A3A;
}
.message {
    display: none;
    text-align: center;
    padding: 1em;
    margin-top: 1em;
    border-radius: 10px;
    font-size: 0.9em;
}
.success {
    background-color: #e6f3e6;
    color: #2e7d32;
}
body.dark-mode .success {
    background-color: #2e7d32;
    color: #e6f3e6;
}
.error {
    background-color: #fce4e4;
    color: #d32f2f;
}
body.dark-mode .error {
    background-color: #d32f2f;
    color: #fce4e4;
}
.theme-toggle {
    background-color: #f5f5f7;
    color: #1d1d1f;
    border: none;
    padding: 0.5em 1em;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.3s ease;
}
body.dark-mode .theme-toggle {
    background-color: #3a3a3c;
    color: white;
}
.theme-toggle:hover {
    background-color: #e0e0e2;
}
body.dark-mode .theme-toggle:hover {
    background-color: #4a4a4c;
}