* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1890ff, #096dd9);
}

.login-box {
  background: white;
  padding: 60px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 400px;
}

.login-box h1 {
  text-align: center;
  color: #1890ff;
  margin-bottom: 40px;
  font-size: 28px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1890ff;
}

.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
}

.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.3s;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: #1890ff;
  color: white;
  width: 100%;
}

.btn-success {
  background: #52c41a;
  color: white;
}

.btn-warning {
  background: #faad14;
  color: white;
}

.btn-danger {
  background: #ff4d4f;
  color: white;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  margin-right: 5px;
}

.admin-page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #001529;
  color: white;
  display: flex;
  flex-direction: column;
}

.logo {
  padding: 24px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
  flex: 1;
  padding: 20px 0;
}

.nav-item {
  display: block;
  padding: 15px 24px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
  background: #1890ff;
  color: white;
}

.logout {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout button {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.logout button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-content {
  flex: 1;
  padding: 24px;
}

.header {
  background: white;
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.header h2 {
  color: #333;
  font-size: 20px;
}

.page-content {
  background: white;
  padding: 24px;
  border-radius: 8px;
}

.toolbar {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.toolbar input, .toolbar select {
  padding: 10px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.table th {
  background: #fafafa;
  font-weight: 600;
  color: #333;
}

.table td {
  color: #666;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.status-pending {
  background: #fff7e6;
  color: #fa8c16;
}

.status-approved {
  background: #f6ffed;
  color: #52c41a;
}

.status-rejected {
  background: #fff1f0;
  color: #ff4d4f;
}

.status-normal {
  background: #f6ffed;
  color: #52c41a;
}

.status-disabled {
  background: #fff1f0;
  color: #ff4d4f;
}

.points-settings {
  max-width: 500px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.setting-item label {
  font-size: 14px;
  color: #333;
}

.input-number {
  width: 150px;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  text-align: right;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
  font-size: 18px;
  color: #333;
}

.close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.empty {
  text-align: center;
  padding: 60px 0;
  color: #999;
}

.import-container {
  padding: 10px 0;
}

.import-steps {
  margin-bottom: 20px;
}

.import-step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.import-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #1890ff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.step-content p {
  margin: 0 0 12px 0;
  color: #666;
  font-size: 14px;
}

.step-content .btn {
  width: auto;
  padding: 8px 16px;
}

.file-upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
}

.file-upload-area:hover {
  border-color: #1890ff;
  background: #f0f7ff;
}

.file-upload-area.drag-over {
  border-color: #1890ff;
  background: #e6f7ff;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.file-upload-area p {
  color: #666;
  margin: 0;
}

.file-name {
  margin-top: 10px;
  padding: 8px 12px;
  background: #e6f7ff;
  border-radius: 4px;
  color: #1890ff;
  font-size: 14px;
}

.import-actions {
  margin-top: 20px;
  text-align: center;
}

.import-actions .btn {
  width: auto;
  padding: 10px 40px;
}

.import-actions .btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

.import-progress {
  margin-top: 20px;
}

.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #1890ff;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.import-progress p {
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

.import-result {
  margin-top: 20px;
}

.result-summary {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.result-item {
  text-align: center;
  padding: 15px 25px;
  border-radius: 8px;
  background: #f5f5f5;
}

.result-item.success {
  background: #f6ffed;
}

.result-item.warning {
  background: #fffbe6;
}

.result-item.danger {
  background: #fff1f0;
}

.result-number {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.result-item.success .result-number {
  color: #52c41a;
}

.result-item.warning .result-number {
  color: #faad14;
}

.result-item.danger .result-number {
  color: #ff4d4f;
}

.result-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.error-list {
  background: #fff1f0;
  border-radius: 8px;
  padding: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.error-list h4 {
  margin: 0 0 10px 0;
  color: #ff4d4f;
  font-size: 14px;
}

.error-list ul {
  margin: 0;
  padding-left: 20px;
}

.error-list li {
  color: #666;
  font-size: 13px;
  margin-bottom: 5px;
}

.error-message {
  background: #fff1f0;
  color: #ff4d4f;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.modal-content {
  max-width: 600px;
}

.import-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.import-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
}

.import-tab:hover {
  color: #1890ff;
}

.import-tab.active {
  background: #1890ff;
  color: white;
}

.import-tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #1890ff;
}

.upload-hint {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.files-list {
  margin-top: 15px;
}

.files-summary {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 10px;
}

.files-count {
  font-weight: 500;
  color: #333;
}

.files-size {
  color: #666;
}

.files-preview {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.file-item:last-child {
  border-bottom: none;
}

.file-icon {
  font-size: 18px;
}

.file-name-small {
  flex: 1;
  font-size: 13px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size-small {
  font-size: 12px;
  color: #999;
}

.file-more {
  padding: 10px;
  text-align: center;
  color: #999;
  font-size: 13px;
  background: #fafafa;
}

.progress-detail {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.announcement-settings {
  max-width: 600px;
}

.announcement-settings .setting-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.announcement-settings .setting-item label {
  font-weight: 500;
}

.input-text {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.input-text:focus {
  outline: none;
  border-color: #1890ff;
}

.input-textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s;
}

.input-textarea:focus {
  outline: none;
  border-color: #1890ff;
}

.input-select {
  width: 200px;
  padding: 10px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.3s;
}

.input-select:focus {
  outline: none;
  border-color: #1890ff;
}

.service-settings {
  max-width: 600px;
}

.service-settings .setting-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.service-settings .setting-item label {
  font-weight: 500;
}

.qrcode-preview {
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-preview text {
  color: #999;
}

.upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
}

.upload-area:hover {
  border-color: #1890ff;
  background: #f0f7ff;
}

.upload-placeholder {
  color: #666;
}

.upload-placeholder .upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.upload-placeholder p {
  margin: 5px 0;
}

.upload-placeholder .upload-hint {
  font-size: 12px;
  color: #999;
}

.upload-preview {
  position: relative;
  display: inline-block;
}

.upload-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
}

.preview-actions {
  margin-top: 10px;
}

.btn-sm {
  padding: 5px 15px;
  font-size: 12px;
}

.btn-danger {
  background: #ff4d4f;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #ff7875;
}

.upload-progress {
  margin-top: 15px;
}

.upload-progress .progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.upload-progress .progress-fill {
  height: 100%;
  background: #1890ff;
  border-radius: 4px;
  transition: width 0.3s;
}

.upload-progress p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #666;
}
