* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; background: #f5f5f5; color: #333; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.header { background: #2c3e50; color: #fff; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 18px; font-weight: 500; }
.header .user-info { font-size: 13px; }
.header .user-info a { color: #ecf0f1; margin-left: 12px; }

.nav { background: #34495e; padding: 0 24px; display: flex; gap: 0; }
.nav a { color: #bdc3c7; padding: 10px 18px; font-size: 14px; display: block; transition: background 0.2s; }
.nav a:hover, .nav a.active { background: #1a73e8; color: #fff; text-decoration: none; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.content { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 24px; }

/* Page Title */
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #1a73e8; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: #f8f9fa; }
th { padding: 10px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid #dee2e6; color: #495057; }
td { padding: 10px 12px; border-bottom: 1px solid #eee; }
tr:hover { background: #f8f9fa; }

/* Buttons */
.btn { display: inline-block; padding: 8px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; border: none; transition: background 0.2s; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; text-decoration: none; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #555; }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.form-control:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }
.form-inline { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.form-inline .form-control { width: auto; }

/* Search Bar */
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; padding: 12px; background: #f8f9fa; border-radius: 6px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; }
.stat-card .number { font-size: 32px; font-weight: 700; color: #1a73e8; }
.stat-card .label { font-size: 13px; color: #777; margin-top: 4px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid #dee2e6; border-radius: 4px; font-size: 13px; }
.pagination span.current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* Login Page */
.login-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); }
.login-box { background: #fff; border-radius: 12px; padding: 40px; width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.login-box h2 { text-align: center; margin-bottom: 24px; color: #2c3e50; }
.login-box .btn { width: 100%; padding: 12px; font-size: 15px; }

/* Detail Page */
.detail-table { width: 100%; }
.detail-table th { width: 150px; background: #f8f9fa; vertical-align: top; }
.detail-table td { padding: 10px 16px; }

/* Badge */
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-completed { background: #d4edda; color: #155724; }

/* Locale checkbox toggle */
label.active, label:has(input:checked) { background: #1a73e8 !important; color: #fff !important; border-color: #1a73e8 !important; }

/* Footer */
.footer { text-align: center; padding: 20px; color: #999; font-size: 12px; margin-top: 40px; }
