* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: #e8e8ed;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.finder-window {
  width: 800px;
  height: 500px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.title-bar {
  height: 38px;
  background-color: #f5f5f7;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #d1d1d6;
  position: relative;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red {
  background-color: #ff5f57;
}

.yellow {
  background-color: #ffbd2e;
}

.green {
  background-color: #28c840;
}

.title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.finder-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 25%;
  min-width: 120px;
  background-color: #f0f0f5;
  border-right: 1px solid #ccc;
  padding: 20px 10px;
  flex-shrink: 1;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
}

.sidebar li:hover {
  background-color: #dcdce0;
}

.sidebar li.active {
  background-color: #d0d0dc;
  font-weight: bold;
}

.main-content {
  width: 75%;
  padding: 30px;
  background-color: #ffffff;
  overflow-y: auto;
  max-height: 100%;
  scroll-behavior: smooth;
  flex-shrink: 1;
  text-align: justify;
  font-size: 13px;
}


a {
  color: #1d5087;
  text-decoration: none;
}

a:hover {
  color: #6c93ce;
  text-decoration: underline;
}

@media (max-width: 500px) {
  .finder-window {
    width: 90%;
    height: 90vh;
    border-radius: 0;
  }

  body {
    padding: 20px;
    justify-content: center;
    align-items: center;
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 240, 245, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  display: none;
}

.popup {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 24px 28px;
  max-width: 320px;
  text-align: center;
  font-size: 14px;
}

.popup h2 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.popup-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.popup-buttons button,
.popup-buttons a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.popup-buttons button {
  background-color: #e0e0e5;
  border: none;
  color: #333;
}

.popup-buttons a {
  background-color: #007aff;
  color: white;
}
