/* assets/css/style.css - CrossSocial UI */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #333; }

.navbar { background: #1a1a2e; color: #fff; padding: 0 24px; display: flex; align-items: center; height: 56px; }
.navbar-brand a { color: #fff; text-decoration: none; font-size: 18px; font-weight: bold; }
.navbar-subtitle { font-size: 12px; opacity: 0.7; margin-left: 8px; }
.navbar-menu { margin-left: auto; display: flex; gap: 16px; }
.nav-item { color: #ccc; text-decoration: none; padding: 8px 12px; border-radius: 4px; }
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }

.container { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h1 { font-size: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form { max-width: 500px; }

.btn { display: inline-block; padding: 8px 16px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; font-size: 14px; color: #333; background: #fff; cursor: pointer; }
.btn-primary { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-warning { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-sm { padding: 4px 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:hover { opacity: 0.9; }
.action-buttons { display: flex; gap: 8px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
.table th { background: #f8f9fa; font-weight: 600; }
.table tr:hover { background: #f5f5f5; }

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

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, 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); }
.stat-value { font-size: 28px; font-weight: bold; color: #1a1a2e; }
.stat-label { font-size: 13px; color: #666; margin-top: 4px; }
.stat-warning .stat-value { color: #f59e0b; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 360px; }
.login-box h1 { text-align: center; margin-bottom: 4px; }
.login-box h2 { text-align: center; font-size: 14px; color: #666; margin-bottom: 24px; font-weight: normal; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eee; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; }
