/* style.css - PURE CSS */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

/* --- Login Page Specific Styling --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000000; /* Blue background */
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 25px;
}

/* --- Header & Navigation --- */
header {
   background-color: #0099ff;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header nav a:hover, header nav a.active-nav {
    background-color: #0056b3;
}

main {
    padding: 20px 30px;
}

/* --- KPI Cards --- */
.kpi-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    text-align: center;
    font-size: 1.1em;
    border-left: 5px solid;
}

.card span {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-top: 5px;
}

/* Card color coding */
.card.go-in { border-left-color: #28a745; } /* Green */
.card.go-out { border-left-color: #dc3545; } /* Red */
.card.pending { border-left-color: #ffc107; } /* Yellow */
.card.total { border-left-color: #17a2b8; } /* Blue */


/* --- Form & Table Styling (General) --- */
form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 20px auto;
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

form input[type="text"], form input[type="number"], .login-form input[type="text"], .login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

form button, .login-form button {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

form button:hover, .login-form button:hover {
    background-color: #1e7e34;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; 
}

table th, table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

table th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Management Actions */
.action-btn {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 5px;
}

.edit-btn {
    background-color: #00c3ff;
    color: #333;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

/* Status Messages */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}