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

html, body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
}

.privacy-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
}

.privacy-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 30px;
  text-align: center;
}

.privacy-section {
  margin-bottom: 30px;
}

.privacy-section h2 {
  color: #228B22;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #228B22;
  padding-bottom: 8px;
}

.privacy-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
}

.privacy-section ul {
  margin-left: 30px;
  margin-bottom: 15px;
}

.privacy-section li {
  line-height: 1.8;
  color: #444;
  margin-bottom: 8px;
}

.privacy-section strong {
  color: #228B22;
}

.privacy-footer {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 6px;
  margin-top: 40px;
  border-left: 4px solid #228B22;
}

.privacy-footer p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.sidebar {
  width: 200px;
  background: #2c3e50;
  color: white;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  padding: 20px 15px 10px;
  border-bottom: 1px solid #34495e;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #ecf0f1;
}

.sidebar-content {
  padding: 10px 0;
}

.sidebar-button {
  width: 100%;
  padding: 12px 15px;
  background: transparent;
  border: none;
  color: #bdc3c7;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-button:hover {
  background: #34495e;
  color: #ecf0f1;
}

.sidebar-button.active {
  background: #228B22;
  color: white;
}

.sidebar-button .icon {
  font-size: 1.1rem;
}

.main-content {
  margin-left: 200px;
  width: calc(100% - 200px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #228B22;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin: 0;
}

.header h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.container {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
  flex: 1;
}

.search-form {
  display: inline-block;
  font-size: 1rem;
  color: #333;
  margin: 0 auto;
}

.path-text {
  font-size: 1rem;
  color: #333;
  vertical-align: middle;
}

.os-select {
  padding: 2px 4px;
  border: 1px solid #999;
  background: white;
  font-size: 1rem;
  vertical-align: middle;
  margin: 0;
}

.search-input {
  padding: 2px 6px;
  border: 1px solid #999;
  font-size: 1rem;
  width: 120px;
  vertical-align: middle;
  margin: 0;
}

.search-input:focus,
.os-select:focus {
  outline: 1px solid #228B22;
}

.search-button {
  padding: 4px 12px;
  border: 1px solid #228B22;
  background: #228B22;
  color: white;
  font-size: 1rem;
  vertical-align: middle;
  margin-left: 8px;
  cursor: pointer;
}

.search-button:hover {
  background: #1F7A1F;
}

.results-container {
  background: white;
  min-height: 400px;
  border: 1px solid #ddd;
  padding: 20px;
}

.loading {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin: 20px 0;
}

.hidden {
  display: none;
}

.exploit-item {
  background: #f9f9f9;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #eee;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exploit-item.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.exploit-item.clickable:hover {
  background: #e8f5e9;
  border-color: #228B22;
  transform: translateX(5px);
}

.error {
  color: #d32f2f;
  text-align: center;
  padding: 20px;
  background: #ffebee;
  border: 1px solid #d32f2f;
}

code {
  background: #f0f0f0;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
}

@media screen and (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-bottom: 2px solid #34495e;
  }

  .sidebar-header {
    padding: 10px 15px;
    text-align: center;
  }

  .sidebar-header h3 {
    font-size: 1rem;
  }

  .sidebar-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
  }

  .sidebar-button {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 0.8rem;
    flex-direction: column;
  }

  .sidebar-button .icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .header {
    padding: 12px 0;
  }

  .header h1 {
    font-size: 1.3rem;
  }

  .container {
    margin: 15px auto;
    padding: 0 15px;
    max-width: 100%;
  }

  .search-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .path-text {
    font-size: 0.85rem;
    text-align: left;
  }

  .os-select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .search-input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  .search-button {
    width: 100%;
    padding: 12px;
    margin-left: 0;
    font-size: 1rem;
  }

  .results-container {
    padding: 12px;
    min-height: 250px;
  }

  .exploit-item {
    padding: 10px;
    font-size: 0.85rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal.show {
  display: block;
}

.modal-content {
  background: white;
  margin: 50px auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: #228B22;
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  word-break: break-all;
}

.close-modal {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-left: 15px;
}

.close-modal:hover {
  color: #ddd;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.detail-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #228B22;
  border-radius: 4px;
}

.detail-section h4 {
  margin: 0 0 12px 0;
  color: #228B22;
  font-size: 1.1rem;
}

.detail-section p {
  margin: 8px 0;
  line-height: 1.5;
}

.detail-section strong {
  color: #333;
  font-weight: 600;
}

.detail-section ul {
  margin: 10px 0;
  padding-left: 20px;
}

.detail-section li {
  margin: 5px 0;
  line-height: 1.5;
}

.code-preview {
  background: #1e1e1e;
  border-radius: 4px;
  padding: 15px;
  overflow-x: auto;
}

.code-preview pre {
  margin: 0;
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.detail-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #eee;
  text-align: center;
}

.github-link {
  display: inline-block;
  padding: 12px 24px;
  background: #228B22;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s;
}

.github-link:hover {
  background: #1F7A1F;
}

@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px auto;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .detail-section {
    padding: 12px;
  }
  
  .code-preview {
    padding: 10px;
  }
  
  .code-preview pre {
    font-size: 0.75rem;
  }
}