* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    padding: 24px 16px;
    color: #1f2937;
}

.container {
    max-width: 640px;
    margin: 0 auto;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.subtitle {
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.date-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

input[type="date"], input[type="time"], input[type="text"], input[type="password"] {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

button, .btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover { background: #1d4ed8; }

.btn-secondary {
    background: #6b7280;
}
.btn-secondary:hover { background: #4b5563; }

.employee-list {
    display: grid;
    gap: 10px;
}

.employee-item {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.employee-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.form-row {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.existing-tag {
    font-size: 0.8rem;
    font-weight: 400;
    color: #059669;
    margin-left: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

th { color: #6b7280; font-weight: 600; }

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.top-nav a { margin-left: 12px; color: #2563eb; text-decoration: none; font-weight: 600; }

.error { color: #dc2626; font-weight: 600; }

.time-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-picker select {
    padding: 10px 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}
