/* Base reset and font */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #0f0f0f;
  color: white;
  font-family: "Inter", sans-serif;
  width: 100%;
  height: 100%;
}

/* Layout containers */
body {
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 2rem;
}

.container {
  width: 100%;
  max-width: 600px;
}

/* Reusable card */
.card {
  background-color: #1c1c1c;
color: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}


/* Reusable bkccard */
.bkccard {
  width: 100%;     /* for fluid layout */
  background-color: #1c1c1c;
  padding: 1.5rem;
  border-radius: 15px;
  margin-top: 700px;
  margin-bottom: 4.5rem;
  ;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}



/* Titles and labels */
.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #facc15; /* Brand yellow */
  margin-bottom: 1rem;
}

label,
.form-label {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
color: #facc15; /* OriginalRights yellow */
}

/* Inputs and selects */
input[type="text"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 10px;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

input::placeholder {
  color: #888;
}

select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23facc15" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
}

/* Upload box */
.upload-box {
  width: 100%;
  padding: 2rem;
  border: 2px dashed #444;
  border-radius: 10px;
  background-color: #2a2a2a;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.upload-box:hover {
  background-color: #333;
}

/* Hint under inputs */
.hint {
  font-size: 0.8rem;
  color: #aaaaaa;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.checkbox-row input {
  margin-right: 0.5rem;
}

/* Primary button */
.submit-button,
.button-primary {
  width: 100%;
  padding: 1rem;
  background-color: #facc15;
  color: black;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover,
.button-primary:hover {
  background-color: #e0b513;
}

.submit-button:disabled {
  background-color: #555;
  color: #999;
  cursor: not-allowed;
}

/* Tagline */
.tagline {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: #ccc;
  font-weight: 300;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagline span {
  font-weight: 600;
  color: #fff;
}

/* Tab toggle links */
.toggle-links {
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 1.5rem;
}

.toggle-links span {
  color: #facc15;
  cursor: pointer;
  padding: 0 0.25rem;
  font-weight: 500;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #1a1a1a;
  padding: 2rem 1rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.sidebar-header {
  font-size: 1.2rem;
  font-weight: bold;
  color: #facc15;
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 1rem;
}

.sidebar-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  display: block;
  border-radius: 8px;
  transition: background 0.2s;
}

.sidebar-links a:hover {
  background-color: #2a2a2a;
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
  }

  .sidebar-links {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .container {
    margin-left: 0 !important;
  }
}

/* Modal2 */
.modal-backdrop {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background-color: #121212;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.modal input[type="text"],
.modal input[type="file"],
.modal select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #2a2a2a;
  color: white;
  border: none;
  border-radius: 10px;
}

#file-name {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.brand-yellow {
  color: #facc15;
  font-weight: 600;
}

.tagline {
  margin: 2rem 0;
  font-size: 0.8rem;
  color: white;
  text-align: center;
}

.tagline .highlight-brand {
  color: #FFD700; /* Yellow */
  font-weight: bold;
}

/* Center modal within main container instead of full-screen */
.modal-wrapper {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* Ensure modal box doesn't go full screen */
.modal {
  width: 500px;
  max-width: 95%;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 11;
}

/* Modal backdrop no longer fullscreen; optional remove */
.modal-backdrop {
  display: none; /* remove if not needed anymore */
}

.disclaimer {
  font-size: 12px;
  color: #ffffff;
  margin-top: 12px;
  line-height: 1.5;
  text-align: left;
}

.downloadbkc-button {
      width: 100%;
      padding: 0.5rem;
      background-color: #facc15;
      color: black;
      font-weight: bold;
      font-size: 1rem;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      margin-top: 2rem;
    }

 .downloadbkc-button:hover {
      background-color: #e0b513;
    }


.success-icon {
  width: 60px;
  height: 60px;
  margin: 20px auto;
}

.success-icon svg {
  width: 100%;
  height: 100%;
  fill: #4CAF50; /* or your preferred green */
}

.top-right-poweredby {
      text-align: right;
      font-size: 0.75rem;
      color: #aaa;
      margin-bottom: 1.5rem;
    }
.meta-row {
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
      color: #ccc;
      line-height: 1.4;
    }

.meta-label {
      display: block;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 0.2rem;
    }

    .meta-value {
      color: #facc15;
      font-weight: 500;
      word-break: break-word;
    }

    .location-link {
      color: #facc15;
      text-decoration: underline;
    }

    .download-button {
      width: 100%;
      padding: 1rem;
      background-color: #facc15;
      color: black;
      font-weight: bold;
      font-size: 1rem;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      margin-top: 2rem;
    }

    .download-button:hover {
      background-color: #e0b513;
    }

    .disclaimer {
      font-size: 0.7rem;
      color: #777;
      margin-top: 2.5rem;
      line-height: 1.4;
      text-align: justify;
    }

 .reference-id {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }

.success-header {
      font-size: 1.5rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }
.reference-id {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }

.popup {
      width: 360px;
      background-color: #111;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    }

    .popup-header {
      background-color: white;
      color: black;
      padding: 1rem;
      font-weight: bold;
      text-align: center;
      font-size: 1.2rem;
      letter-spacing: 0.5px;
    }

    .popup-body {
      padding: 2rem 1.5rem;
      background-color: #1c1c1c;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .cube-container {
      display: flex;
      gap: 18px;
      margin-bottom: 2.5rem;
      perspective: 600px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .cube {
      width: 30px;
      height: 30px;
      position: relative;
      transform-style: preserve-3d;
      animation: rotateY 2s linear infinite;
    }

    .cube:nth-child(2) { animation-delay: 0.2s; }
    .cube:nth-child(3) { animation-delay: 0.4s; }
    .cube:nth-child(4) { animation-delay: 0.6s; }

    .cube div {
      position: absolute;
      width: 30px;
      height: 30px;
      background: #ddd;
      opacity: 0.95;
      border: 1px solid #999;
    }

    .cube .front  { transform: rotateY(  0deg) translateZ(15px); }
    .cube .back   { transform: rotateY(180deg) translateZ(15px); }
    .cube .left   { transform: rotateY(-90deg) translateZ(15px); }
    .cube .right  { transform: rotateY( 90deg) translateZ(15px); }
    .cube .top    { transform: rotateX( 90deg) translateZ(15px); }
    .cube .bottom { transform: rotateX(-90deg) translateZ(15px); }

    @keyframes rotateY {
      0%   { transform: rotateY(0deg) rotateX(10deg); }
      100% { transform: rotateY(360deg) rotateX(10deg); }
    }

    .progress-text {
      text-align: center;
      max-width: 280px;
      line-height: 1.5;
    }

    .progress-text .main {
      font-size: 1.1rem;
      font-weight: bold;
      margin-bottom: 0.7rem;
    }

    .sub-text {
      font-size: 0.95rem;
      font-family: 'Orbitron', monospace;
      color: #00ff00;
      letter-spacing: 0.5px;
      text-shadow: 0 0 4px #00ff00;
    }

/* ======================= */
/* verify - Blockchain Verify Page */
/* ======================= */

/* ===== Main Card (dark black) ===== */
.card {
  background-color: #000;       /* Deep black */
  color: #fff;
}

/* ===== Verify Subcards (lighter black for contrast) ===== */
.verify-subcard {
  background-color: #1a1a1a;    /* Slightly lighter black */
  color: #fff;
  border: 1px solid #333;
}

.verify-subcard h3,
.verify-subcard label,
.verify-subcard span,
.verify-subcard td {
  color: #fff;
}

/* Table headers keep yellow for emphasis */
.verify-table th {
  background-color: #facc15;
  color: #000;
}

.verify-input {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.verify-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 4px rgba(250, 204, 21, 0.6);
}

.verify-hint {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.verify-field {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.verify-field label {
  font-weight: 600;
  color: #333;
}

.verify-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.verify-table th,
.verify-table td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  text-align: left;
}

.verify-table th {
  background-color: #facc15;
  color: #000;
}

.verify-explanation {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
}

.verify-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verify-download-btn {
  background-color: #facc15;
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.verify-download-btn:hover {
  background-color: #e0b513;
}

/* Toaster Notification */
.verify-toaster {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 10000;
}

.hidden {
  display: none !important;
}

/* Fade-in animation for subcards */
.fade-in-verify {
  animation: fadeInVerify 0.4s ease;
}

@keyframes fadeInVerify {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Force hidden elements to stay hidden */
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ===== Force hidden elements to stay hidden ===== */
.card.hidden,
.verify-subcard.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/*--modal css copied from create_upload----*/
/* Modal overlay fix */
    .modal-backdrop-overlay {
      position: fixed; 
      top: 0; 
      left: 0; 
      width: 100vw; 
      height: 100vh;
      background: rgba(0, 0, 0, 0.7);
      display: none; 
      justify-content: center; 
      align-items: center;
      z-index: 9999;
      color: white; /* white text on dark bg */
    }

    .modal-backdrop-overlay.show {
      display: flex;
    }

    /* Modal box default */
    .modal-box {
      background: #1f2937; /* darker background for processing modal */
      padding: 2rem;
      border-radius: 10px;
      text-align: center;
      min-width: 320px;
      max-width: 450px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
      color: white;
      font-family: 'Orbitron', sans-serif;
    }

    /* Dark success card */
    #modal_success .modal-box {
      background: #1f2937;
      color: #f9fafb;
    }

    #modal_success .meta-row {
      display: flex;
      justify-content: space-between;
      font-size: 13px;
      margin: 6px 0;
      border-bottom: 1px solid #374151;
      padding-bottom: 4px;
    }

    #modal_success .meta-label {
      font-weight: bold;
      color: #facc15;
    }

    #modal_success .meta-value, 
    #modal_success .meta-value a {
      color: #f9fafb;
      word-break: break-word;
    }

    .download-button {
      background: #facc15;
      color: #000;
      font-weight: bold;
      padding: 10px 15px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 15px;
    }

    .download-button:hover {
      background: #fde047;
    }

    #modal_thankyou .modal-content {
      background-color: #111827; /* Dark background */
      color: #f9fafb; /* Light text */
    }

.modal-spinner {
  margin: 20px auto; /* center horizontally + margin from top */
  border: 4px solid red; /* red outer */
  border-top: 4px solid yellow; /* yellow spinning part */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
}


