:root {
    --primary: #2563eb;
    --success: #16a34a;
    --danger: #dc2626;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding: 2rem;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.75rem;
    color: var(--text);
}

.time-display {
    color: var(--text-light);
    font-weight: 500;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Status & Action Section */
.status-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.out {
    background-color: #fee2e2;
    color: var(--danger);
}

.status-badge.in {
    background-color: #dcfce7;
    color: var(--success);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #1d4ed8;
}

.btn.checked-in {
    background-color: var(--danger);
}

.btn.checked-in:hover {
    background-color: #b91c1c;
}

/* Log Table */
h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-light);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

.empty-log {
    color: var(--text-light);
}