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

body {
    background: linear-gradient(to bottom right, #f1f1f1, #e8eaec);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.container {
   
    background:linear-gradient(to top, #ffff,  rgba(120, 94, 94, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    padding: 35px 28px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    animation: fadeIn 0.7s ease-in-out;
}


/* .container { 
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 30px 25px;
    border-radius: 18px;
    box-shadow: 0px 12px 25px rgba(0,0,0,0.12);
    border: 1px solid #f3f3f3;
    animation: fadeIn 0.7s ease-in-out;
 } */

/* HEADER */
.header h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.header h1 span {
    color: #ff9900;
}

/* FORM */
.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

label span {
    color: red;
}

input, select {
    width: 100%;
    margin-top: 6px;
    padding: 13px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fafafa;
    transition: 0.25s ease;
    font-size: 14px;
}

input:focus,
select:focus {
    border-color: #ff9900;
    background: white;
    box-shadow: 0 0 6px rgba(255,153,0,0.35);
}

/* BUTTON */
button {
    width: 100%;
    padding: 14px;
    background: #ff9900;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: 0.25s ease;
}

button:hover {
    background: #e38700;
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.98);
}

/* LOGOS */
.logos {
    margin-top: 28px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.logos img {
    width: 90px;
    opacity: 0.85;
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
    .container {
        padding: 25px 18px;
    }

    .logos img {
        width: 70px;
    }

    .header h1 {
        font-size: 21px;
    }
}

/* ANIMATION */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}



/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* Modal box */
.modal-content {
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
    background-image: url("1765389241355.jpg"); /* ton image */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 20px;

   
}





@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Close button */
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.ticket-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
  font-weight: 700;
}

/* Ticket content layout */
.ticket-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Student info section */
.ticket-info {
  background:transparent;
  padding: 15px;
  padding-left: 25px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
}

/* QR section */
.ticket-qr {
  text-align: center;
}

.scan-text {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

/* Download button styling */
.download-btn {
  background: #ff9900;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.25s ease;
  font-size: 14px;
}

.download-btn:hover {
  background: #e38700;
  transform: translateY(-2px);
}

/* Capture zone - hidden element for HD download */
#captureZone {
  position: fixed;
  top: -9999px;
  left: -9999px;
  background: white;
  padding: 20px;
  border-radius: 15px;
}

/* Loader overlay for async operations */
.loader-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.loader-overlay.hidden { display: none; }
.spinner {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.15);
  border-top-color: #ff9900;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* File input styling */
#receipt {
  display: none;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: linear-gradient(135deg, #ff9900, #ffb84d);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
  gap: 8px;
}

.file-input-label:hover {
  background: linear-gradient(135deg, #e38700, #ffa500);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 153, 0, 0.3);
}

.file-input-label:active {
  transform: scale(0.98);
}

.file-input-label::before {
  content: "📤";
  font-size: 18px;
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
  word-break: break-word;
}
