* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft JhengHei', 'PingFang TC', Arial, sans-serif; background: #f5f7fa; color: #333; }
.login-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-container { width: 100%; max-width: 400px; }
.login-box { background: white; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); padding: 40px; }
.login-header { text-align: center; margin-bottom: 30px; }
.login-header h1 { font-size: 28px; color: #333; margin-bottom: 5px; }
.login-header p { color: #666; font-size: 14px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: #333; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #667eea; }
.btn { padding: 12px 24px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5568d3; }
.btn-block { width: 100%; }
.alert { padding: 12px; border-radius: 5px; margin-bottom: 20px; }
.alert-error { background: #fee; color: #c33; border: 1px solid #fcc; }
.alert-success { background: #efe; color: #3c3; border: 1px solid #cfc; }
.login-footer { text-align: center; margin-top: 20px; color: #999; font-size: 12px; }
.navbar { background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.navbar-brand { font-size: 20px; font-weight: bold; color: #667eea; }
.navbar-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.navbar-menu { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.navbar-menu a { color: #333; text-decoration: none; padding: 8px 16px; border-radius: 5px; transition: all 0.3s; white-space: nowrap; }
.navbar-menu a:hover { background: #f5f7fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 30px; }
.card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px; }
.card-header { font-size: 18px; font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.stat-value { font-size: 32px; font-weight: bold; color: #667eea; margin: 10px 0; }
.stat-label { color: #666; font-size: 14px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f5f7fa; font-weight: 600; color: #333; }
.table tr:hover { background: #f9f9f9; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
@media (max-width: 768px) { 
    .stats-grid { grid-template-columns: 1fr; } 
    .navbar { flex-wrap: wrap; }
    .navbar-toggle { display: block; }
    .navbar-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; margin-top: 15px; }
    .navbar-menu.active { display: flex; }
    .navbar-menu a { padding: 12px; }
    .container { padding: 15px; }
    .table { font-size: 12px; }
    .table th, .table td { padding: 8px; }
}
