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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.content {
  padding: 30px;
}

.upload-section {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.upload-section:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.upload-section.dragover {
  border-color: #667eea;
  background: #e3f2fd;
  transform: scale(1.02);
}

.file-input {
  display: none;
}

.upload-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input,
.filter-select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  flex: 1;
  min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.export-btn {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.export-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.export-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.blocks-container {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 10px;
}

.block-item {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.block-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

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

.block-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 10px;
}

.block-title {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
  margin-bottom: 5px;
}

.block-type {
  color: #667eea;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.block-properties {
  display: none;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.block-item.expanded .block-properties {
  display: block;
}

.property-group {
  margin-bottom: 15px;
}

.property-group-title {
  font-weight: bold;
  color: #495057;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #dee2e6;
}

.property {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dotted #ddd;
}

.property:last-child {
  border-bottom: none;
}

.property-name {
  font-weight: 500;
  color: #495057;
}

.property-value {
  color: #6c757d;
  text-align: right;
  max-width: 50%;
  word-wrap: break-word;
}

.stats {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.expand-all {
  background: #17a2b8;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.expand-all:hover {
  background: #138496;
  transform: translateY(-1px);
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}
