/* --- GENERAL STYLES --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.dark {
  background: #1e1e2f;
  color: #f0f0f0;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  padding: 12px 30px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
}

nav .btn {
  background: white;
  color: #764ba2;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

nav .btn:hover {
  background: #667eea;
  color: white;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 10px;
}

/* --- LOGO --- */
.logo {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  border-radius: 8px;
}

/* --- HEADER --- */
h1 {
  text-align: center;
  margin: 30px 0 20px;
  font-size: 2.2rem;
  color: #333;
}

.dark h1 {
  color: #f0f0f0;
}

/* --- FORM --- */
form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  max-width: 800px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dark form {
  background: #2c2c3c;
}

input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 150px;
  flex: 1;
}

button {
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background: #764ba2;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  background: #667eea;
}

/* --- SEARCH & ACTION BUTTONS --- */
.actions {
  text-align: center;
  margin: 20px auto;
}

.actions input {
  padding: 10px;
  width: 50%;
  max-width: 300px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px; /* professional spacing between buttons */
  margin-top: 10px;
}

.action-buttons button {
  background: #764ba2;
  padding: 10px 18px;
  border-radius: 8px;
  color: white;
}

.action-buttons button:hover {
  background: #667eea;
}

/* --- CARDS --- */
#cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.dark .card {
  background: #2c2c3c;
  color: white;
}