/* frontend/assets/css/main.css — SummarIQ Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #07080F;
  --bg2: #0C0E18;
  --surface: #131520;
  --surface2: #1B1E2D;
  --border: #252836;
  --border2: #2E3245;
  --accent: #F7B731;
  --adim: rgba(247, 183, 49, .12);
  --teal: #00C9A7;
  --tdim: rgba(0, 201, 167, .12);
  --purple: #8B5CF6;
  --pdim: rgba(139, 92, 246, .12);
  --blue: #60A5FA;
  --orange: #FB923C;
  --pink: #F472B6;
  --green: #34D399;
  --text: #E8EAF0;
  --muted: #6B7280;
  --dim: #9CA3AF;
  --danger: #FF4757;
  --success: #2ED573;
  --r: 10px;
  --rl: 16px;
  --rx: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: 'Manrope', sans-serif;
  outline: none;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}

/* Shared components */
.btn-accent {
  padding: .42rem 1rem;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 700;
  color: #000;
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  transition: all .2s;
}

.btn-accent:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-ghost {
  padding: .38rem .9rem;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--dim);
  background: none;
  border: 1px solid var(--border);
  transition: all .2s;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--border2);
  color: var(--text);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.35rem;
}

.fg {
  margin-bottom: .85rem;
}

.flabel {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .35rem;
  font-family: 'Syne', sans-serif;
}

.finput,
.fselect {
  width: 100%;
  padding: .6rem .85rem;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: .875rem;
  transition: border-color .2s;
}
.pass-input {
  padding-right: 2.5rem;
}
.finput:focus,
.fselect:focus {
  border-color: var(--accent);
}

.fselect {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 1.75rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
  max-width: 320px;
  transform: translateY(100px);
  opacity: 0;
  transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-txt {
  font-size: .83rem;
  font-weight: 500;
}

/* Spinner */
.spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}

.btn-go.loading .spin,
.btn-primary.loading .spin {
  display: block;
}

.btn-go.loading .btn-txt,
.btn-primary.loading .btn-txt {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal overlay */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay.show {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--rx);
  padding: 1.75rem;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.mcls {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.mcls:hover {
  color: var(--text);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(7, 8, 15, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}

.nav-logo .li {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #000;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: .15rem;
}

.nl {
  padding: .38rem .85rem;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--dim);
  cursor: pointer;
  background: none;
  border: none;
  transition: all .2s;
  font-family: 'Manrope', sans-serif;
}

.nl:hover {
  color: var(--text);
  background: var(--surface);
}

.nl.active {
  color: var(--accent);
  background: var(--adim);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.user-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #000;
  cursor: pointer;
}

@media(max-width:768px) {
  .nav-links {
    display: none;
  }
}