:root{
  --bg-body:#800000;
  --bg-card:#9e1a1a;
  --bg-secondary:#7a1010;

  --border:#c49a2c;

  --text:#ffffff;
  --text-secondary:#ffd700;
  --text-muted:#ffcc80;

  --button-bg:#a52a2a;
  --button-hover:#b84040;

  --success:#00c853;
  --warning:#ffb300;
  --error:#ff5252;
  --info:#2196f3;

  --success-bg:#0a3b0a;
  --error-bg:#4a0000;
  --info-bg:#0d2137;

  --shadow:0 10px 25px rgba(0,0,0,.25);
}

body.silver-theme{
  --bg-body:#f2f2f2;
  --bg-card:#ffffff;
  --bg-secondary:#f5f5f5;

  --border:#9e9e9e;

  --text:#1a1a1a;
  --text-secondary:#5d4037;
  --text-muted:#757575;

  --button-bg:#e0e0e0;
  --button-hover:#cfcfcf;

  --success:#2e7d32;
  --warning:#ef6c00;
  --error:#c62828;
  --info:#1565c0;

  --success-bg:#e8f5e9;
  --error-bg:#ffebee;
  --info-bg:#e3f2fd;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;

  background:var(--bg-body);
  color:var(--text);

  min-height:100vh;

  padding:20px;

  transition:
    background .25s ease,
    color .25s ease;
}

/* =======================================
   CONTAINER
======================================= */

.container{
  width:100%;
  max-width:900px;

  margin:0 auto;
}

.page-header{
  text-align:center;

  margin-bottom:24px;
}

.page-header h1{
  font-size:1.6rem;
  font-weight:700;

  margin-bottom:10px;
}

.sub-title{
  color:var(--text-secondary);

  font-size:.95rem;
  line-height:1.6;
}

/* =======================================
   CARD
======================================= */

.card{
  background:var(--bg-card);

  border:1px solid var(--border);

  border-radius:8px;

  padding:22px;

  margin-bottom:18px;

  box-shadow:var(--shadow);
}

.card h2{
  margin-bottom:14px;

  font-size:1.1rem;
}

/* =======================================
   THEME BUTTON
======================================= */

.theme-toggle{
  position:fixed;

  top:18px;
  right:18px;

  z-index:999;

  background:var(--button-bg);

  color:var(--text);

  border:1px solid var(--border);

  border-radius:999px;

  padding:10px 16px;

  cursor:pointer;

  font-weight:700;

  transition:.2s;
}

.theme-toggle:hover{
  background:var(--button-hover);
}

/* =======================================
   NETWORK BANNER
======================================= */

.network-banner{
  margin-bottom:18px;

  padding:14px;

  border-radius:6px;

  background:var(--error-bg);

  border-left:4px solid var(--error);

  color:var(--text);
}

.hidden{
  display:none !important;
}

/* =======================================
   DROP ZONE
======================================= */

.drop-zone{
  border:2px dashed var(--border);

  border-radius:8px;

  padding:40px 20px;

  text-align:center;

  transition:.25s ease;
}

.drop-zone.disabled{
  opacity:.55;
  pointer-events:none;
}

.drop-zone.drag-over{
  transform:scale(1.01);

  border-color:var(--text-secondary);

  background:rgba(255,255,255,.05);
}

.drop-content{
  display:flex;

  flex-direction:column;

  align-items:center;

  gap:10px;
}

.drop-icon{
  font-size:3rem;
}

.drop-zone h2{
  margin:0;
}

.drop-zone p{
  color:var(--text-secondary);
}

input[type=file]{
  display:none;
}

/* =======================================
   BUTTON
======================================= */

button{
  background:var(--button-bg);

  color:var(--text);

  border:1px solid var(--border);

  border-radius:6px;

  cursor:pointer;

  font-family:inherit;

  padding:12px 22px;

  font-size:.95rem;

  font-weight:600;

  transition:.2s;
}

button:hover:not(:disabled){
  background:var(--button-hover);
}

button:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* =======================================
   PROGRESS
======================================= */

.progress-wrapper{
  margin-top:20px;
}

.progress-label{
  margin-bottom:8px;

  font-size:.9rem;
}

.progress-bar{
  width:100%;

  height:14px;

  overflow:hidden;

  border-radius:999px;

  background:rgba(0,0,0,.15);
}

.progress-fill{
  width:0%;

  height:100%;

  transition:width .25s ease;

  background:var(--success);
}

.progress-text{
  margin-top:8px;

  font-size:.85rem;

  text-align:right;
}

/* =======================================
   STATUS BOX
======================================= */

.status-box{
  margin-top:18px;

  padding:14px;

  border-radius:6px;

  line-height:1.6;
}

.status-box.info{
  background:var(--info-bg);

  border-left:4px solid var(--info);
}

.status-box.success{
  background:var(--success-bg);

  border-left:4px solid var(--success);
}

.status-box.error{
  background:var(--error-bg);

  border-left:4px solid var(--error);
}

/* =======================================
   CAPTCHA
======================================= */

#captchaContainer{
  margin-top:16px;
}

/* =======================================
   COUNTER
======================================= */

.upload-counter{
  margin-top:16px;

  text-align:center;

  color:var(--text-muted);

  font-size:.85rem;
}

/* =======================================
   HISTORY
======================================= */

.history-container{
  display:flex;

  flex-direction:column;

  gap:10px;
}

.history-item{
  padding:12px;

  border:1px solid var(--border);

  border-radius:6px;

  background:var(--bg-secondary);
}

.history-item strong{
  display:block;

  margin-bottom:6px;
}

.history-item small{
  color:var(--text-muted);
}

/* =======================================
   LINK BUTTONS
======================================= */

.link-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.link-btn{
  display:block;

  text-decoration:none;

  text-align:center;

  padding:14px;

  border-radius:6px;

  border:1px solid var(--border);

  background:var(--bg-secondary);

  color:var(--text);

  font-weight:600;

  transition:.2s;
}

.link-btn:hover{
  background:var(--button-hover);
}

/* =======================================
   FOOTER
======================================= */

.footer{
  text-align:center;

  padding:12px 0 24px;
}

.footer p{
  margin-bottom:10px;
}

.copyright{
  margin-top:14px;

  font-size:.8rem;

  color:var(--text-muted);
}

/* =======================================
   TABLET
======================================= */

@media (max-width:768px){

  body{
    padding:15px;
  }

  .card{
    padding:18px;
  }

  .page-header h1{
    font-size:1.35rem;
  }

  .theme-toggle{
    top:12px;
    right:12px;
  }
}

/* =======================================
   MOBILE
======================================= */

@media (max-width:480px){

  body{
    padding:12px;
  }

  .card{
    padding:15px;
  }

  .page-header h1{
    font-size:1.2rem;
  }

  .drop-zone{
    padding:30px 15px;
  }

  button{
    width:100%;
  }

  .theme-toggle{
    position:static;

    width:100%;

    margin-bottom:15px;
  }
}

/* =======================================
   LARGE DESKTOP
======================================= */

@media (min-width:1200px){

  .container{
    max-width:1000px;
  }
}
