/* Basic dark theme and card styles to mimic a modern bot panel */
:root{
  --bg:#0b1220;
  --panel:#0f1720;
  --muted:#9fb0c8;
  --accent:#59bfff;
}

html,body,#app{height:100%}
body{background:linear-gradient(180deg,#030417 0%,var(--bg) 100%);font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial}

#sidebar{
  width:260px;
  min-width:260px;
  background:linear-gradient(180deg,#071026,#0b1422);
  border-right:1px solid rgba(255,255,255,0.03);
  height:100vh;
  position:sticky;
  top:0;
  overflow:auto;
  padding-top: 8px;
}
.sidebar-brand{border-bottom:1px solid rgba(255,255,255,0.02)}
.sidebar-link{color:#cfe7ff; text-decoration:none}
.sidebar-link:hover{background:rgba(255,255,255,0.02); color:white; border-radius:6px}
.guild-item{color:#cfe7ff; text-decoration:none; border-radius:6px}
.guild-item:hover{background:rgba(255,255,255,0.02)}

#content{padding:28px; overflow:auto}

.card-dark{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);
  border-radius:12px;
  color:var(--muted);
}

.text-muted{color:var(--muted) !important}

.btn-outline-light{border-color:rgba(255,255,255,0.06); color:#dfefff}
.btn-success{background:linear-gradient(90deg,var(--accent),#3db0ff); border:0}

.sidebar-footer{position: absolute; bottom: 8px; width: 100%;}
.sidebar-section { margin-top: 6px;}

/* --- app-specific additions for logo & hero --- */

.sidebar-brand img { box-shadow: 0 2px 10px rgba(0,0,0,0.4); }

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
}

@media (min-width: 992px) {
  .hero .display-5 { font-size: 2.2rem; }
}

.card.card-dark img.hero-image { max-height: 260px; object-fit:cover; }

/* Hero curved banner styles (append to static/css/site.css) */

.hero-banner {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background-color: #071228; /* fallback */
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  display: flex;
  align-items: flex-end;
}

/* optional overlay inside the banner (small badge) */
.hero-overlay { position: absolute; inset: 18px; pointer-events: none; }
.hero-badge {
  display: inline-block;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(6px);
}

/* the SVG curve that cuts the bottom of the banner and blends into the background */
.hero-curve {
  position: absolute;
  left: 0;
  bottom: -1px; /* slightly overlap */
  width: 100%;
  height: 110px;
  display: block;
  pointer-events: none;
}

/* ensure small screens look ok */
@media (max-width: 991px) {
  .hero-banner { height: 260px; border-radius: 12px; margin-top: 18px; }
  .hero-curve { height: 80px; }
}

/* for extra smoothness, ensure the banner background uses a dark overlay if the image is bright */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.15) 0%, rgba(2,6,23,0.35) 60%);
  pointer-events: none;
}

/* Login page full-bleed background and panel styling */

/* login/banner styles (append once to static/css/site.css) */
.login-viewport { position: relative; min-height: calc(100vh - 48px); overflow: hidden; }
.login-banner { position: absolute; left: 0; right: 0; top: 0; height: 360px; background-size: cover; background-position: center; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; box-shadow: 0 12px 40px rgba(2,6,23,0.6); z-index: 0; }
.login-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0.12) 0%, rgba(2,6,23,0.45) 100%); z-index: 0; }
.hero-curve { position: absolute; left:0; right:0; bottom:-1px; width:100%; height:110px; z-index:1; pointer-events:none; }
.login-panel { position: relative; z-index: 2; padding-top: 6.5rem; padding-bottom: 4rem; }
.login-card { max-width: 760px; margin: 0 auto; border-radius: 12px; }
.login-card .text-muted { color: rgba(215,230,245,0.75) !important; }
@media (max-width: 767px) { .login-banner { height: 220px; } .login-panel { padding-top: 4rem; padding-bottom: 3rem; } .login-card { padding: 18px; } }