/* General Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --brand-green: #155648;      /* Deep Forest Green from logo */
    --brand-yellow: #f9cf36;     /* Golden Yellow from logo */
    --brand-yellow-hover: #fbc02d;
    --bg-light: #f8faf9;         /* Very subtle green-tinted light grey */
    --text-main: #2c3e50;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    background: url('../../chaturthi-bg2.webp') no-repeat center center fixed;
    background-size: cover;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--brand-green);
    color: white;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--brand-yellow);
}

.logo-parent {
    display: flex;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Logo icon simulation if needed */
.header h1::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 12px;
    background: url('../img/logo.png') no-repeat center center; /* Path to your logo */
    background-size: contain;
}

.nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 18px;
    margin-left: 5px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--brand-yellow);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav a.active {
    background-color: var(--brand-yellow);
    color: var(--brand-green);
    font-weight: 700;
}

/* --- Main Content Area --- */
.container {
    padding: 30px;
    max-width: 1000px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(26, 67, 50, 0.05);
        background: rgb(0 0 0 / 46%);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

h2 {
    color: white;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--brand-yellow);
}

/* --- Form Styles --- */
.employee-form fieldset {
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    /* background-color: #fcfcfc; */
}

.employee-form legend {
    font-weight: 700;
    color: var(--brand-green);
    padding: 0 15px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
        background: white;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
    width: 50%;
    float: left;
    position: relative;
}

.form-group.full-width {
    width: 100%;
}

.employee-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
    color: #ffffff;
}

.employee-form input[type="text"],
.employee-form input[type="date"],
.employee-form input[type="number"],
.employee-form input[type="file"],
.employee-form select,
.employee-form textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.2s;
    background-color: rgba(255, 255, 255, 0);
    color: white;
}

.employee-form input:focus, 
.employee-form select:focus, 
.employee-form textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(26, 67, 50, 0.1);
}

.form-actions {
    clear: both;
    padding-top: 10px;
    text-align: center; /* Center the save button for a modern feel */
}

.form-group option {
    color: black;
}

.btn-primary {
    padding: 14px 40px;
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    background-color: #123125;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 67, 50, 0.2);
}

/* --- Table Styles --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background-color: var(--brand-green);
    color: var(--brand-yellow);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    padding: 15px;
    border-bottom: 2px solid var(--border-color);
}

table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92em;
    color: rgb(0, 0, 0);
    background-color: white;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f9fffb33;
}

/* Action Buttons */
.btn-action {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-action.edit {
    background-color: var(--brand-yellow);
    color: var(--brand-green);
}

.btn-action.delete {
    background-color: #e53e3e;
    color: white;
}

.btn-action:hover {
    opacity: 0.85;
}

/* --- Toolbar & Search --- */
.toolbar {
    /* background-color: #fff; */
    padding: 15px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap-reverse;
    gap: 10px;
}

.search-form {
        display: flex;
    /* width: 100%; */
}

.search-form input[type="text"] {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    width: 300px;
}

.btn-search {
    padding: 10px 20px;
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
}

.btn-add {
    background-color: var(--brand-yellow);
    color: var(--brand-green);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* --- Rejoining Section Style --- */
.hidden-fields {
    border-left: 4px solid var(--brand-yellow) !important;
    background-color: #fffdf2 !important;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
    }

    .header h1 {font-size: 16px;}
    .nav { margin-top: 15px; }
    .nav a { margin: 2px; padding: 8px 12px; font-size: 0.85em; }
    .form-group { width: 100%; float: none; padding: 0; }
    .search-form input[type="text"] { width: 100%; }
    .container { margin: 10px; padding: 15px; }
    .search-form {width: 100%;}
}


.login-logo {
    width: 100px;
}

.message {
    background-color: white;
}