* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: linear-gradient(135deg, #1a1a2e, #16213e); min-height: 100vh; color: #333; }
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.card { background: white; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 30px; margin-bottom: 20px; }
h1, h2 { color: #2c3e50; margin-bottom: 20px; }
h1 { text-align: center; font-size: 24px; }
h2 { font-size: 18px; border-bottom: 2px solid #3498db; padding-bottom: 10px; margin-top: 25px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
input, select, textarea { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3498db; }
textarea { min-height: 80px; resize: vertical; }
.btn { padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-primary { background: #3498db; color: white; }
.btn-success { background: #27ae60; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-secondary { background: #95a5a6; color: white; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.block { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.block-actions { display: flex; gap: 8px; margin-top: 12px; }
.nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e0e0e0; }
th { background: #3498db; color: white; }
tr:hover { background: #f5f7fa; }
.loading { text-align: center; padding: 40px; color: #3498db; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.error { color: #e74c3c; text-align: center; padding: 20px; }
.hidden { display: none !important; }
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.login-card { width: 100%; max-width: 400px; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-info { background: #3498db; color: white; }
.badge-warning { background: #f39c12; color: white; }
.placeholder-box { background: #f8f9fa; border: 2px dashed #dee2e6; border-radius: 12px; padding: 50px; text-align: center; }
.placeholder-box h3 { color: #6c757d; margin-bottom: 10px; }
.placeholder-box p { color: #adb5bd; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal { background: white; border-radius: 12px; padding: 25px; max-width: 400px; width: 90%; }
.modal h3 { margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.inline-save { display: flex; gap: 10px; }
.inline-save input { flex: 1; }