* {
  margin: 0;
  padding: 0;

}

body {
  background-color: #f1f2f3;
}

.container {
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  box-sizing: border-box;
  color: #333;
  line-height: 1.6;
}

.container *{
  box-sizing: border-box;
}

.container header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
  color: #2c3e50;
}

header .subtitle {
  font-size: 15px;
  color: #7f8c8d;
}


.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.controls {
  flex: 1;
  min-width: 350px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

.tree-view {
  flex: 2;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  height: 600px;
  overflow: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
  position: relative;
}

.tree-container {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre;
  padding: 15px;
  background: white;
  border-radius: 8px;
  min-height: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #4a6cf7;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 20px;
}

.btn:hover {
  background: #3a5ce5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 92, 229, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #6c757d;
  width: 120px;
  margin-bottom: 0;
}

.btn-secondary:hover {
  background: #5a6268;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success {
  background: #28a745;
}

.btn-success:hover {
  background: #218838;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background: #e0a800;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.file-input {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 0px 20px;
  height: 50.5px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #4a6cf7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.status {
  margin-bottom: 20px;
  padding: 15px;
  background: #e7f4ff;
  border-radius: 8px;
  border-left: 4px solid #4a6cf7;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  width: 100%;
  word-break: break-word;
}

.highlight {
  background-color: #fff9c4;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: bold;
}

footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
}

.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}

.feature {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffc008;
}

.copyright {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #6c757d;
  padding: 20px;
}

.folder-icon {
  font-size: 4rem;
  margin-bottom: 10px;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.highlight-match {
  background-color: #ffeb3b;
  font-weight: bold;
}

.search-mode {
  margin-bottom: 20px;
  padding: 10px;
  background: #f1f3f5;
  border-radius: 8px;
  display: flex;
  gap: 15px;
}

.search-mode label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
