body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f0f2f5;
}

.admit-card-wrapper {
  padding: 24px;
  max-width: 900px;
  margin: 20px auto;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.admit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.admit-card-header h2 {
  font-size: 24px;
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
}

.admit-card-actions {
  display: flex;
  gap: 10px;
}

.admit-card-actions button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.admit-card-actions button:hover {
  /* background-color: #f0f0f0; */
}
.btn-print{
   background-color: black;
    color: #fff;
}
.btn-download {
  background-color: black;
  color: #fff;
  /* border-color: #007bff; */
}

.btn-download:hover {
  background-color: #0056b3;
  /* color: #fff; */
}
.btn-print:hover{
 background-color: #0056b3;
}
.admit-card-box {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
}

.admit-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.logo-box {
  width: 80px;
  height: 80px;
  border: 1px solid #d0d0d0;
  background-color: #eee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

.institute-details {
  text-align: center;
  flex-grow: 1;
  padding: 0 20px;
}

.institute-details h3 {
  margin: 0;
  font-size: 26px;
  color: #2c3e50;
  font-weight: 600;
}

.institute-details .tagline {
  font-size: 14px;
  color: #7f8c8d;
  margin: 5px 0;
}

.institute-details p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.admit-btn {
  border: 1px solid #d0d0d0;
  padding: 6px 14px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.admit-btn:hover {
  background-color: #f0f0f0;
}

.photo-box {
  text-align: center;
  flex-shrink: 0;
}

.photo-square {
  width: 80px;
  height: 80px;
  border: 1px solid #d0d0d0;
  background-color: #eee;
  border-radius: 4px;
  margin-bottom: 6px;
}

.photo-box p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.student-details {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #d0d0d0;
  margin-bottom: 20px;
}

.student-details > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-details strong {
  color: #333;
  font-weight: 500;
}

.instructions {
  padding: 10px 0;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
}

.instructions p {
  font-weight: 500;
  margin: 0;
  color: #34495e;
  padding: 8px;
}

.signatures {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 14px;
  margin-top: 20px;
  border-top: 1px solid #d0d0d0;
}

.signatures span {
  width: 30%;
  text-align: center;
  padding-top: 5px;
  color: #333;
  font-weight: 500;
}

.empty-box {
  display: none;
}

@media print {
  .admit-card-wrapper {
    margin: 0;
    box-shadow: none;
    border: none;
  }

  .admit-card-header,
  .admit-card-actions {
    display: none;
  }

  .admit-card-box,
  .admit-card-top,
  .student-details,
  .instructions,
  .signatures {
    border: none;
    background-color: transparent;
  }

  body {
    margin: 0;
    padding: 0;
  }
}
/* Mobile Responsive Styles */
@media (max-width: 600px) {
  .admit-card-wrapper {
    padding: 12px;
    margin: 10px;
    border-radius: 6px;
  }

  .admit-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .admit-card-header h2 {
    font-size: 18px;
  }

  .admit-card-actions {
    width: 100%;
    justify-content: center;
  }

  .admit-card-actions button {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
  }

  .admit-card-box {
    padding: 12px;
  }

  .admit-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .logo-box {
    width: 60px;
    height: 60px;
    font-size: 10px;
  }

  .institute-details h3 {
    font-size: 18px;
  }

  .institute-details .tagline {
    font-size: 12px;
  }

  .institute-details p {
    font-size: 11px;
  }

  .admit-btn {
    font-size: 12px;
    padding: 4px 10px;
  }

  .photo-square {
    width: 70px;
    height: 70px;
  }

  .student-details {
    flex-direction: column;
    gap: 10px;
  }

  .student-details > div {
    width: 100%;
  }

  .student-details strong {
    font-size: 13px;
  }

  .instructions p {
    font-size: 12px;
    padding: 6px;
  }

  .signatures {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
  }

  .signatures span {
    width: 100%;
    text-align: center;
  }
}
/* Mobile layout for logo, institute name, and photo */
@media (max-width: 600px) {
  .admit-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .logo-box {
    width: 70px;
    height: 70px;
    font-size: 10px;
    margin-bottom: 6px;
  }

  .institute-details h3 {
    font-size: 18px;
    margin: 4px 0;
  }

  .institute-details .tagline {
    font-size: 12px;
    margin: 2px 0;
  }

  .institute-details p {
    font-size: 11px;
    margin: 0;
  }

  .admit-btn {
    font-size: 12px;
    padding: 4px 12px;
    margin-top: 6px;
  }

  .photo-box {
    width: 80px;
    height: 100px;
    margin-top: 10px;
  }
}
