* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.6;
}

a {
    color: #1a5fb4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
}

.site-header {
    background: #1f3c88;
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.global-nav ul {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav a {
    color: #fff;
    font-weight: bold;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.logout-link {
    color: #fff;
    text-decoration: underline;
}

.main-content {
    padding: 24px 0 48px;
}

.site-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 16px 0;
    text-align: center;
    color: #666;
}

.page-title {
    margin: 0 0 20px;
    font-size: 28px;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.text-muted {
    color: #666;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: #1f3c88;
    margin: 10px 0 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td {
    border: 1px solid #d8e0ef;
    padding: 10px;
    vertical-align: top;
    font-size: 14px;
}

.table th {
    background: #eef4ff;
    text-align: left;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    border: 1px solid #d8e0ef;
    padding: 10px;
    text-align: left;
}

.info-table th {
    width: 180px;
    background: #f2f6ff;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-control,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="month"],
input[type="datetime-local"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b7c3da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.inline-group {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-block;
}

.filter-form .form-control {
    min-width: 180px;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    font-size: 20px;
    padding: 16px 28px;
    min-width: 180px;
}

.btn-sm {
    font-size: 12px;
    padding: 6px 10px;
}

.btn-primary {
    background: #1f6feb;
}

.btn-secondary {
    background: #6c757d;
}

.btn-success {
    background: #198754;
}

.btn-danger {
    background: #dc3545;
}

.btn-warning {
    background: #e0a800;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f7ed;
    color: #1c6b38;
    border: 1px solid #bce3c9;
}

.alert-danger {
    background: #fdecec;
    color: #8a1f2d;
    border: 1px solid #f3b8c0;
}

.alert-warning {
    background: #fff6e0;
    color: #7a5b00;
    border: 1px solid #ecd58d;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1f3c88;
    font-size: 12px;
    font-weight: bold;
}

.login-container {
    max-width: 520px;
    margin: 40px auto;
}

.stamp-status-box {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5eaf5;
    margin-bottom: 20px;
}

.stamp-date {
    font-size: 22px;
    margin: 0 0 10px;
}

.stamp-time {
    font-size: 42px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #1f3c88;
}

.stamp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

.sample-accounts ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

@media (max-width: 980px) {
    .grid-2,
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .global-nav ul {
        flex-wrap: wrap;
    }
}