* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  padding: 15px;
}

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

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

.container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.inputs{
  display: flex ;
  gap: 20px;
}

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

#jobForm {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 12px;
}

@media (min-width: 768px) {
  #jobForm { grid-template-columns: 1fr 1fr; }
  #jobForm button { grid-column: span 2; }
}

input, select, button {
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: rgba(120, 115, 115, 0.2);
  color: #fff;
  width: 100%;
}

select option { color: #000; }

button {
  background: #1a2a33;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover { background: #0f2027; }

.search-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .search-section { flex-direction: row; }
}

.table-container { width: 100%; }

table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  thead { display: none; } 

  tr {
    display: block;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #00c6ff;
    text-align: left;
  }

  td:last-child { border: none; flex-direction: column; gap: 10px; align-items: stretch; }
}

@media (min-width: 769px) {
  th, td { padding: 15px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
  thead { background: rgba(255,255,255,0.1); }
}

.Applied { color: #3498db; font-weight: bold; }
.Interview { color: #f1c40f; font-weight: bold; }
.Offer { color: #2ecc71; font-weight: bold; }
.Rejected { color: #e74c3c; font-weight: bold; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  background: #1a2a33;
  padding: 25px;
  border-radius: 12px;
  max-width: 450px;
  margin: 50px auto;
  position: relative;
}

.close { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; }

#editForm { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
#editForm label { font-size: 12px; color: #aaa; }