/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.5;
}

/* Header */
header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

header input {
  width: 40%;
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  outline: none;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* Sidebar */
.sidebar {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.sidebar label {
  display: block;
  font-weight: bold;
  margin-top: 12px;
}

.sidebar select {
  width: 100%;
  padding: 6px 8px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#resetBtn {
  margin-top: 15px;
  width: 100%;
  padding: 8px;
  border: none;
  background-color: #e74c3c;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

#resetBtn:hover {
  background-color: #c0392b;
}

/* Jobs Section */
.jobs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.job-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.job-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.company {
  font-weight: bold;
  margin-bottom: 5px;
}

.location {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.tags {
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  background-color: #ecf0f1;
  color: #2c3e50;
  padding: 3px 8px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.job-card button {
  padding: 6px 12px;
  background-color: #3498db;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.job-card button:hover {
  background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  header input {
    width: 100%;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}
