/* === Zmienne (Catppuccin Mocha) === */
:root {
    --bg: #1e1e2e;          /* Base */
    --text: #cdd6f4;        /* Text */
    --accent: #cba6f7;      /* Mauve */
    --border: #313244;      /* Surface0 */
    --hover-bg: #181825;    /* Mantle */
    --code-bg: #585b70;     /* tło inline code */
    --code-text: #a6e3a1;   /* zielony tekst inline code */
    --transition-speed: 0.4s;
}


main.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5vh;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body {
  background: var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  animation: gradientShift 5s ease infinite;

  color: var(--text);
  font-family: monospace;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.search-container input, .search-container button {
  padding: 10px 20px;
  font-size: 20px;
  border-radius: 30px;
  border: none;
}

.search-container input {
  width: 400px;
}

.search-container button {
  margin-left: 8px;
  cursor: pointer;
}

#results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.result-card {
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
}

.result-card.available {
  border: 4px solid var(--accent);
  background: var(--accent);
}

#drives-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 40px;
}

.drive-card {
    background: var(--hover-bg);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}


.drive-card.connected {
  border-color: var(--accent);
  background: var(--accent);
}

.drive-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.3));
}

.drive-card .status {
  font-size: 12px;
  color: rgb(53, 11, 11);
  opacity: 0.8;
  margin: 12px;
}

.capacity-bar {
  width: 100%;
  height: 10px;
  background: #333;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0;
}

.capacity-fill {
  height: 100%;
  background: #4caf50;
  transition: width 0.3s ease;
}