body {

    margin: 0;

    padding: 30px;

    background: #0f172a;

    color: white;

    font-family: Arial, sans-serif;

}


.container {

    max-width: 1200px;

    margin: auto;

}


.header {

    text-align: center;

    margin-bottom: 40px;

}


.header h1 {

    font-size: 45px;

    margin-bottom: 5px;

}


.header p {

    color: #94a3b8;

    font-size: 18px;

}




.dashboard {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 30px;

}


.stat-card {

    background: #1e293b;

    padding: 25px;

    border-radius: 18px;

    text-align: center;

    box-shadow: 0 5px 20px rgba(0,0,0,0.3);

}


.stat-card h3 {

    color: #60a5fa;

}


.stat-card h2 {

    font-size: 32px;

    margin: 10px;

}


.stat-card p {

    color: #94a3b8;

}




.card {

    background: #1e293b;

    padding: 30px;

    margin-bottom: 25px;

    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.3);

}


.card h2 {

    color: #60a5fa;

}


.card p {

    color: #cbd5e1;

}


label {

    display: block;

    margin-bottom: 8px;

    color: #cbd5e1;

}


input {

    padding: 12px;

    border: none;

    border-radius: 8px;

    background: #0f172a;

    color: white;

    font-size: 15px;

}


textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 15px;

    border: none;

    border-radius: 10px;

    background: #0f172a;

    color: white;

    font-size: 15px;

}


button {

    padding: 13px 25px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    cursor: pointer;

}


button:hover {

    background: #1d4ed8;

}


pre {

    background: #020617;

    padding: 20px;

    border-radius: 12px;

    color: #22c55e;

    white-space: pre-wrap;

    line-height: 1.6;

}


.chatbot {

    border: 1px solid #2563eb;

}


.footer {

    text-align: center;

    color: #64748b;

    padding: 30px;

}




@media (max-width: 800px) {

    .dashboard {

        grid-template-columns: 1fr 1fr;

    }

}


@media (max-width: 500px) {

    .dashboard {

        grid-template-columns: 1fr;

    }

}
<!-- ================================================= -->
<!-- EMPLOYEE DIRECTORY -->
<!-- ================================================= -->

<div class="card">

    <h2>👥 Employee Directory</h2>

    {% if employee_list %}

    <div style="overflow-x:auto;">

        <table>

            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Department</th>
                <th>Leave Taken</th>
                <th>Salary</th>
                <th>Status</th>
            </tr>

            {% for emp_id, emp in employee_list %}

            <tr>

                <td>{{ emp_id }}</td>

                <td>{{ emp.name }}</td>

                <td>{{ emp.department }}</td>

                <td>{{ emp.leave_taken }} days</td>

                <td>
                    {% if emp.salary is defined %}
                        ₹{{ "{:,.0f}".format(emp.salary) }}
                    {% else %}
                        Not Set
                    {% endif %}
                </td>

                <td>🟢 Active</td>

            </tr>

            {% endfor %}

        </table>

    </div>

    {% else %}

    <p>No employees found.</p>

    {% endif %}

</div>
