.logo.vite:hover {
  filter: drop-shadow(0 0 2em #747bff);
}

.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafb);
}
:root {
  --primary-color: #1a73e8;
  --secondary-color: #4caf50;
  --background-color: #202124;
  --surface-color: #292a2d;
  --text-color: #e8eaed;
  --text-secondary-color: #9aa0a6;
  --border-color: #3c4043;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --success-color: #4caf50;
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;

  color: #0f0f0f;
  background-color: #f6f6f6;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  background-color: var(--surface-color);
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.app-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.app-content {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.server-selector {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.server-selector h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.input-group {
  display: flex;
  margin-bottom: 1rem;
}

.input-group input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.input-group button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.input-group button:hover {
  background-color: #1967d2;
}

.scan-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.3s;
}

.scan-button:hover {
  background-color: #43a047;
}

.scan-button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.plugins-list {
  margin-top: 1.5rem;
}

.plugins-list h2 {
  margin-bottom: 1rem;
}

.plugin-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plugin-details {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plugin-version {
  color: var(--text-secondary-color);
  font-size: 0.9rem;
}

.update-available {
  background-color: #4caf50;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.plugins-count {
  margin-top: 0.5rem;
}

.plugins-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px 4px 0 0;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.plugin-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

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

.plugin-item.has-update {
  background-color: rgba(255, 152, 0, 0.1);
}

.plugin-actions {
  display: flex;
  gap: 0.5rem;
}

.update-button {
  padding: 0.5rem 1rem;
  background-color: var(--warning-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.update-button:hover {
  background-color: #f57c00;
}

.info-button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.info-button:hover {
  background-color: #1967d2;
}

.app-footer {
  background-color: var(--surface-color);
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  color: var(--text-secondary-color);
}

.container {
  margin: 0;
  padding-top: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: 0.75s;
}

.logo.tauri:hover {
  filter: drop-shadow(0 0 2em #24c8db);
}

.row {
  display: flex;
  justify-content: center;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

h1 {
  text-align: center;
}

input,
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  color: #0f0f0f;
  background-color: #ffffff;
  transition: border-color 0.25s;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

button {
  cursor: pointer;
}

button:hover {
  border-color: #396cd8;
}
button:active {
  border-color: #396cd8;
  background-color: #e8e8e8;
}

input,
button {
  outline: none;
}

#greet-input {
  margin-right: 5px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f6f6f6;
    background-color: #2f2f2f;
  }

  a:hover {
    color: #24c8db;
  }

  input,
  button {
    color: #ffffff;
    background-color: #0f0f0f98;
  }
  button:active {
    background-color: #0f0f0f69;
  }
}

.error-message {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--error-color);
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  border: 1px solid var(--error-color);
}

.plugin-details-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.plugin-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.plugin-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.plugin-details-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.close-button:hover {
  color: var(--text-color);
}

.plugin-details-content {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 2rem;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.detail-row {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: bold;
  color: var(--text-secondary-color);
  margin-bottom: 0.25rem;
}

.detail-value {
  color: var(--text-color);
}

.plugin-details-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.server-info {
  background-color: var(--surface-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.server-info h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.server-type {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.server-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.server-type-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.minecraft-version, .plugins-path {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.version-label, .path-label {
  font-weight: bold;
  color: var(--text-secondary-color);
  margin-bottom: 0.25rem;
}

.version-value, .path-value {
  color: var(--text-color);
  word-break: break-all;
}

.plugin-version-display {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-secondary-color);
}

.plugin-description {
  margin-bottom: 1.5rem;
  line-height: 1.5;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
}

.plugin-authors, .plugin-dependencies, .plugin-soft-dependencies, .plugin-file-info {
  margin-bottom: 1.5rem;
}

.section-label {
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: var(--text-secondary-color);
}

.file-path, .file-hash {
  word-break: break-all;
  font-family: monospace;
  background-color: var(--surface-color);
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.plugin-changelog {
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.changelog-content {
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.4;
}

.update-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.detail-update-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.detail-update-button:hover {
  background-color: #43a047;
}

.detail-update-button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.update-available-badge {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.bulk-update-progress {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary-color);
}

.bulk-update-progress progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  margin-top: 0.25rem;
}

/* Warning Modal Styles */
.warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Higher than other modals */
}

.warning-content {
  background-color: var(--background-color);
  border: 2px solid var(--warning-color);
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.warning-content h3 {
  color: var(--warning-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.warning-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.warning-content .close-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--warning-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.warning-content .close-button:hover {
  background-color: #e69500;
}
