/* Nozdor Share - Forum-matched dark theme */

/* Override Bootstrap CSS variables */
:root {
  --bs-body-bg: #1a0f08 !important;
  --bs-body-color: #e0e6f0 !important;
  --bs-body-font-family: 'Montserrat', sans-serif !important;
}

html, body {
  background: #1a0f08 !important;
  background-color: #1a0f08 !important;
  color: #e0e6f0 !important;
  font-family: 'Montserrat', sans-serif !important;
  margin: 0;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: #392519 !important;
  border-bottom: 1px solid #5a4234 !important;
  padding: 0.5rem 0 !important;
}
.navbar-brand { color: #EF972F !important; font-weight: 700 !important; }
.navbar-brand:hover { color: #ced364 !important; }
.navbar-brand img { border-radius: 6px; }
.nav-link { color: #b49a84 !important; font-weight: 500 !important; }
.nav-link:hover { color: #EF972F !important; }
.navbar-toggler { border-color: #5a4234 !important; }
.navbar-toggler-icon { filter: invert(0.7) sepia(1) saturate(3) hue-rotate(15deg); }

/* Container override */
.container { background: transparent !important; }

/* Upload zone */
.file {
  border: 2px dashed #5a4234 !important;
  border-radius: 12px !important;
  background: #392519 !important;
  padding: 3rem 2rem !important;
  text-align: center !important;
  cursor: pointer;
  transition: all 0.3s;
}
.file:hover {
  border-color: #EF972F !important;
  background: #433024 !important;
}
.file.accepting-drop {
  background: rgba(239,151,47,0.15) !important;
  border-color: #EF972F !important;
  box-shadow: 0 0 30px rgba(239,151,47,0.2);
}
.file-label { display:block; cursor:pointer; color:#e0e6f0; }
.file-input { display:none; }
.file-cta { display:inline-flex; align-items:center; gap:0.5rem; font-weight:600; color:#b49a84; }
.file:hover .file-cta { color:#EF972F; }
.file-icon { display:inline-flex; color:#EF972F; font-size:1.3rem; }

/* Paste box */
#pastebox {
  background: #392519 !important;
  border: 1px solid #5a4234 !important;
  color: #b49a84 !important;
  border-radius: 10px !important;
  padding: 0.9rem !important;
  text-align: center;
  caret-color: transparent;
  resize: none;
}
#pastebox:focus {
  border-color: #EF972F !important;
  box-shadow: 0 0 0 2px rgba(239,151,47,0.2) !important;
}
#pastebox::placeholder { color: #b49a84 !important; opacity: 0.7; }

/* Forms */
.form-control {
  background-color: #433024 !important;
  border: 1px solid #5a4234 !important;
  color: #e0e6f0 !important;
  border-radius: 6px !important;
}
.form-select {
  background-color: #433024 !important;
  border: 1px solid #5a4234 !important;
  color: #e0e6f0 !important;
  border-radius: 6px !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23EF972F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
  padding-right: 2.25rem !important;
}
.form-control:focus, .form-select:focus {
  border-color: #EF972F !important;
  box-shadow: 0 0 0 2px rgba(239,151,47,0.2) !important;
}
.form-label { color: #b49a84 !important; font-weight: 500 !important; }
.form-text { color: #b49a84 !important; opacity: 0.7; }
.form-select option { background: #392519; color: #e0e6f0; }

/* Buttons */
.btn-success, .btn-primary {
  background: #EF972F !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}
.btn-success:hover, .btn-primary:hover { background: #c3700f !important; }
.btn-outline-primary {
  border: 1px solid #EF972F !important;
  color: #EF972F !important;
  border-radius: 6px !important;
  background: transparent !important;
}
.btn-outline-primary:hover { background: #EF972F !important; color: #fff !important; }
.btn-danger { background: #dc3545 !important; border: none !important; border-radius: 6px !important; }

/* Cards */
.card {
  background: #392519 !important;
  border: 1px solid #5a4234 !important;
  border-radius: 10px !important;
  color: #e0e6f0 !important;
}
.card a { color: #EF972F !important; }

/* Alerts */
.alert-primary {
  background: rgba(239,151,47,0.1) !important;
  border: 1px solid #5a4234 !important;
  color: #EF972F !important;
}
.alert-danger {
  background: rgba(220,53,69,0.1) !important;
  border: 1px solid rgba(220,53,69,0.3) !important;
  color: #ff6b7a !important;
}

/* Progress */
.upload-progress-bar {
  appearance:none; display:block; width:100%;
  height:0.6rem; border-radius:999px;
  background:#392519; overflow:hidden;
}
.upload-progress-bar::-webkit-progress-bar { background:#392519; border-radius:999px; }
.upload-progress-bar::-webkit-progress-value { background:#EF972F; border-radius:999px; }
.upload-progress-bar::-moz-progress-bar { background:#EF972F; border-radius:999px; }

/* Tables */
.table { color: #e0e6f0 !important; --bs-table-bg:transparent; --bs-table-border-color:#5a4234; }
.table th { color: #EF972F !important; }

/* Links */
a { color: #EF972F !important; text-decoration: none; }
a:hover { color: #ced364 !important; }

/* Dropdown */
.dropdown-menu { background: #392519 !important; border: 1px solid #5a4234 !important; }
.dropdown-item { color: #b49a84 !important; }
.dropdown-item:hover { background: rgba(239,151,47,0.1) !important; color: #EF972F !important; }

/* Login page */
.login-form {
  background: #392519 !important;
  border: 1px solid #5a4234 !important;
  border-radius: 12px !important;
  padding: 2rem !important;
}

/* Misc */
h1,h2,h3,h4,h5,h6 { color: #e0e6f0 !important; }
.fa-spinner { color: #EF972F; }
.field-max-width { max-width:100%; width:100%; }
.text-muted { color: #b49a84 !important; }
code { color: #EF972F !important; }
.modal-content { background: #392519 !important; border: 1px solid #5a4234 !important; color: #e0e6f0 !important; }
.modal-header { border-bottom-color: #5a4234 !important; }
.modal-footer { border-top-color: #5a4234 !important; }
.btn-close { filter: invert(0.7); }

/* Footer */
.nz-footer {
  background: #2a1810;
  border-top: 1px solid #5a4234;
  margin-top: auto;
  padding: 2rem 0 0;
  font-size: 0.9rem;
}
.nz-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
.nz-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #EF972F !important;
}
.nz-footer-brand img { border-radius: 6px; }
.nz-footer-desc {
  color: #b49a84;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}
.nz-footer-heading {
  color: #EF972F !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #EF972F;
  display: inline-block;
}
.nz-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nz-footer-links li { margin-bottom: 0.5rem; }
.nz-footer-links a {
  color: #b49a84 !important;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.nz-footer-links a:hover { color: #EF972F !important; }
.nz-footer-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.nz-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #392519;
  border: 1px solid #5a4234;
  color: #b49a84 !important;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.nz-footer-socials a:hover {
  background: #EF972F;
  border-color: #EF972F;
  color: #fff !important;
  transform: translateY(-2px);
}
.nz-footer-bottom {
  border-top: 1px solid #5a4234;
  text-align: center;
  padding: 1rem;
  color: #5a4234;
  font-size: 0.78rem;
}
@media (max-width: 1024px) {
  .nz-footer { padding: 0; }
  .nz-footer-about { display: none !important; }
  .nz-footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem 1rem;
    padding: 0.4rem 1rem;
    text-align: center;
  }
  .nz-footer-col { width: auto; }
  .nz-footer-heading { display: none; }
  .nz-footer-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
  }
  .nz-footer-links li { margin-bottom: 0; }
  .nz-footer-links a { font-size: 0.72rem; }
  .nz-footer-socials { justify-content: center; gap: 0.4rem; }
  .nz-footer-socials a {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    border-radius: 6px;
  }
  .nz-footer-bottom {
    padding: 0.2rem;
    font-size: 0.6rem;
  }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s ease-out; }

/* Mobile upload text */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline !important; }
}
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}

/* Preview thumbnail */
.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #5a4234;
  margin-bottom: 1rem;
  object-fit: contain;
}
.preview-container {
  background: #392519;
  border: 1px solid #5a4234;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.preview-filename {
  color: #b49a84;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  word-break: break-all;
}

/* Expiration info */
.expiration-info {
  color: #b49a84;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
