
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #eee;
  background: linear-gradient(-45deg, #1b1b2f, #2a2a40, #1e1e2f, #222233);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: center; 
  position: relative;
  padding: 1px 20px;
  background: rgba(20,20,30,0.9);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

header .header-left {
  position: absolute;
  left: 20px;
  display: flex;
  gap: 8px;
}



#manageBtn {
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ffb700,#ffda6b);
  color: #111;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

#manageBtn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}


#records {
  padding: 20px;
}


.highlight {
  background: linear-gradient(135deg, #ffda6b, #ffb700);
  color: #111;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  position: relative;
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}


.card {
  background: rgba(30,30,45,0.85);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.card h3 { 
  margin-top: 0; 
}


.card-top-right {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.edit, .delete {
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 4px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  transition: background 0.2s;
}

.edit:hover { background: rgba(255,255,0,0.7); }
.delete:hover { background: rgba(255,0,0,0.7); }

.card input, .highlight input {
  width: 90%;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(40,40,60,0.9);
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.card button.saveEdit, .highlight button.saveEdit {
  background: #4a90e2;
  margin-top: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  color: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.card button.saveEdit:hover, .highlight button.saveEdit:hover {
  background: #357ab8;
}


#managePanel {
  display: none;
  background: rgba(40,40,60,0.95);
  padding: 25px;
  margin: 20px auto;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  width: 90%;
  max-width: 400px;
  text-align: center;
}


#managePanel input, #managePanel button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 8px 0;
  border: none;
  font-size: 1rem;
}

#managePanel input {
  background: #2a2a3a;
  color: #fff;
}

#managePanel button {
  background: linear-gradient(135deg,#ffb700,#ffda6b);
  color: #111;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

#managePanel button:hover {
  filter: brightness(1.1);
}


.card label, .highlight label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #eee;
}

.card input[type="checkbox"], .highlight input[type="checkbox"] {
  transform: scale(1.1);
  vertical-align: middle;
  margin: 0;
}

.card button.saveReset, .highlight button.saveReset {
  background: #ff8c42;
  margin-top: 8px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  color: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.2s;
}

.card button.saveReset:hover, .highlight button.saveReset:hover {
  background: #e0701a;
}

.inline-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.inline-modal .modal-content {
  background: rgba(40,40,60,0.95);
  padding: 25px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
  color: #eee;
}

.inline-modal .modal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.inline-modal .modal-content button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 8px;
  font-weight: 600;
}

.inline-modal .modal-content button.confirm {
  background: #ff8c42;
  color: #fff;
}

.inline-modal .modal-content button.confirm:hover {
  background: #e0701a;
}

.inline-modal .modal-content button.cancel {
  background: #555;
  color: #fff;
}

.inline-modal .modal-content button.cancel:hover {
  background: #777;
}

.inline-modal .modal-content h2 {
  margin-bottom: 15px; 
  font-size: 1.4rem;    
}

.inline-modal .modal-content p {
  margin-bottom: 12px;  
  line-height: 1.5;      
  font-size: 1rem;       
}

header > div button {
  margin-right: 8px;
}

header > div button#infoBtn {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg,#6cbcff,#a6d4ff);
  color: #111;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

header > div button#infoBtn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
