:root{
  --brand-black:#111111;
  --brand-charcoal:#1f1f1f;
  --brand-orange:#f05d27;
  --brand-orange-soft:#ff8a5c;
  --brand-bg:#f8f6f4;
  --brand-card:#ffffff;
  --brand-text:#181818;
}

body{
  background: radial-gradient(1200px 400px at 20% 0%, rgba(240,93,39,.14), transparent 60%),
              radial-gradient(900px 360px at 80% 0%, rgba(17,17,17,.08), transparent 55%),
              var(--brand-bg);
  color: var(--brand-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;
}

.brand-nav{
  background: linear-gradient(90deg, #0a0a0a, var(--brand-black) 55%, var(--brand-charcoal));
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-logo{
  height: 48px;
  width: auto;
  background: #ffffff;
  padding: 4px;
  border-radius: 10px;
}

.brand-pill{
  color: var(--brand-black) !important;
}

.brand-hero{
  background: linear-gradient(120deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

.brand-note{
  background: rgba(240,93,39,.08);
  border: 1px solid rgba(240,93,39,.22);
  padding: 12px 14px;
  border-radius: 14px;
  min-width: 240px;
}

.brand-card{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
}


.btn-brand{
  --bs-btn-color:#fff;
  --bs-btn-bg: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-bg: #d84f1f;
  --bs-btn-hover-border-color: #d84f1f;
  --bs-btn-active-bg: #bf451c;
  --bs-btn-active-border-color:#bf451c;
  --bs-btn-focus-shadow-rgb: 240,93,39;
}

.project-toolbar{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
}

.project-search-wrap{
  flex: 0 0 380px;
  max-width: 100%;
}

.project-search-input-wrap{
  position: relative;
}

.project-search-input{
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(240,93,39,.35);
  padding-left: 38px;
  padding-right: 40px;
  font-size: 1.05rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239aa3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.project-search-input:focus{
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 .2rem rgba(240,93,39,.12);
}

.project-search-clear{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a8f97;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.project-search-clear:hover{
  color: #4b5563;
}

.project-upload-btn{
  min-height: 44px;
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(138,123,240,.28);
  background: #efeaff;
  color: #f05d27;
  font-weight: 700;
  white-space: nowrap;
}

.project-upload-btn:hover{
  background: #e7dfff;
  color: #d84f1f;
}

.progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.08);
}
.progress-bar{
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-soft));
}

.qr-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}

.brand-footer{
  background: linear-gradient(90deg, #0a0a0a, var(--brand-black) 55%, var(--brand-charcoal));
  border-top: 2px solid var(--brand-orange);
  color: #f3f3f3;
  margin-top: auto;
}

.brand-footer-inner{
  min-height: 72px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-footer-copy,
.brand-footer-dev{
  font-size: 14px;
  line-height: 1.4;
}

.hover-underline:hover{
  text-decoration: underline !important;
}

/* Prevent date flickering */
.local-date {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}
.local-date.ready {
  opacity: 1;
}

.brand-footer-dev{
  color: #ffb293;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-footer-logo{
  height: 34px;
  width: auto;
  display: block;
}

@media (max-width: 575.98px){
  .project-toolbar{
    flex-direction: column;
  }

  .project-search-wrap{
    flex-basis: auto;
    width: 100%;
  }

  .project-upload-btn{
    width: 100%;
    text-align: center;
  }

  .brand-footer-inner{
    min-height: 0;
    padding: 12px 8px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
    align-items: center;
  }

  .brand-footer-dev{
    align-items: center;
  }

  .brand-footer-logo{
    height: 26px;
  }
}
