/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.container:has(.login-form),
.container:has(.timecard) {
    max-width: 400px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    color: #555;
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
}

h3 {
    color: #444;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

h4 {
    color: #555;
    margin-bottom: 10px;
}

small {
    display: block;
    color: #777;
    margin-top: 5px;
    font-size: 12px;
}

/* Login Form */
.login-form, .timecard, .admin-panel {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 0.1em;
}

.btn-login, .btn-add-user {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-login:hover, .btn-add-user:hover {
    background-color: #45a049;
}

/* Timecard */
.user-info {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.status-in {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-out {
    background-color: #ffebee;
    color: #c62828;
}

.timecard-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.timecard-buttons button:disabled {
    background-color: #8d8d8de5;
    cursor: not-allowed; 
    pointer-events: none;
}

.full-width {
    width: 100%;
}

.btn-checkin, .btn-checkout {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-checkin {
    background-color: #4CAF50;
}

.btn-checkout {
    background-color: #f44336;
}

.btn-checkin:hover {
    background-color: #45a049;
}

.btn-checkout:hover {
    background-color: #d32f2f;
}

/* Admin Panel */
.admin-panel {
    max-width: 800px;
}

.admin-section {
    margin-bottom: 30px;
}

.user-list {
    margin-bottom: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f9f9f9;
}

.btn-deleteUser {
    color: #fff;
    background-color: #eb6100;
}
.btn-deleteUser:hover {
    color: #fff;
    background: #f56600d0;
}

table td:nth-child(5) {
    text-align: left;
    padding: 0;
}

table td:nth-child(5) button {
    display: inline-block;
    margin-left: 0;
    font-size: 12px;
    width: 50%;
    height: 25px;
}

.add-user-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.admin-actions {
    margin-top: 20px;
    text-align: center;
}

.btn-logout {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #d32f2f;
}

/* Messages */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
