body {
  font-family: 'Courier New', monospace;
  background-color: #1e1e1e;
  color: #e0e0e0;
  margin: 0;
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

h1 {
  color: #4fc3f7;
  margin: 0;
}

.subtitle {
  color: #a5d6a7;
  margin-top: 5px;
}

.main-content {
  display: flex;
  gap: 20px;
}

.file-system {
  flex: 1;
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.inode-details {
  width: 350px;
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.panel-title {
  color: #4fc3f7;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
  margin-top: 0;
}

.disk-visualization {
  background-color: #1e1e1e;
  border: 1px solid #444;
  height: 200px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.disk-block {
  position: absolute;
  border: 1px solid #333;
  background-color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  transition: all 0.3s;
}

.disk-block:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.disk-block.free {
  background-color: #2a2a2a;
  color: #666;
}

.disk-block.used {
  background-color: #4caf50;
}

.disk-block.indirect {
  background-color: #2196f3;
}

.disk-block.double-indirect {
  background-color: #9c27b0;
}

.disk-block.triple-indirect {
  background-color: #ff9800;
}

.file-explorer {
  border: 1px solid #444;
  border-radius: 4px;
  height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
  background-color: #1e1e1e;
}

.file-item {
  padding: 8px 15px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.file-item:hover {
  background-color: #333;
}

.file-item.selected {
  background-color: #444;
  color: #4fc3f7;
}

.file-name {
  flex: 1;
}

.file-size {
  color: #a5d6a7;
  margin-left: 10px;
}

.inode-structure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.inode-section {
  border: 1px solid #444;
  border-radius: 4px;
  padding: 10px;
}

.inode-section-title {
  color: #4fc3f7;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
}

.inode-attributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}

.attribute {
  display: flex;
  justify-content: space-between;
}

.attribute-name {
  color: #a5d6a7;
}

.attribute-value {
  color: #e0e0e0;
}

.block-pointers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pointer {
  width: 30px;
  height: 30px;
  border: 1px solid #444;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

.pointer:hover {
  background-color: #333;
}

.pointer.direct {
  background-color: #4caf50;
}

.pointer.indirect {
  background-color: #2196f3;
}

.pointer.double-indirect {
  background-color: #9c27b0;
}

.pointer.triple-indirect {
  background-color: #ff9800;
}

.pointer.empty {
  background-color: #2a2a2a;
  color: #666;
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

button {
  flex: 1;
  padding: 8px;
  background-color: #333;
  color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #444;
}

button:active {
  background-color: #555;
}

.file-ops {
  display: flex;
  gap: 10px;
}

input[type="text"], input[type="number"] {
  padding: 8px;
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  flex: 1;
}

.status-bar {
  margin-top: 15px;
  padding: 8px;
  background-color: #2a2a2a;
  border-radius: 4px;
  font-size: 12px;
  color: #a5d6a7;
}

.legend {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 3px;
}

.tooltip {
  position: absolute;
  background-color: #333;
  border: 1px solid #444;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s;
}