:root{
  --blue:#1565c0;
  --blue2:#0d47a1;
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 10px 25px rgba(2,6,23,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue2);text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:0 14px}
.page{padding:18px 0 40px}

.topbar{
  position:sticky; top:0; z-index:999;
  background:var(--blue);
  border-bottom:1px solid rgba(255,255,255,.15);
}
.topbar-inner{display:flex;align-items:center;gap:14px;min-height:60px}
.brand{color:#fff;font-weight:800;letter-spacing:.2px}
.nav{display:flex;gap:12px;flex:1;flex-wrap:wrap}
.nav a{color:#eaf2ff;font-weight:600;padding:8px 10px;border-radius:10px}
.nav a:hover{background:rgba(255,255,255,.12);text-decoration:none}

.auth{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:9px 12px;border-radius:12px;
  font-weight:700;border:1px solid transparent;
  cursor:pointer;white-space:nowrap
}
.btn-light{background:#fff;color:var(--blue)}
.btn-light:hover{background:#f8fbff}
.btn-outline{background:transparent;border-color:#dbeafe;color:#fff}
.btn-outline:hover{background:rgba(255,255,255,.12)}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
}

.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 900px){ .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width: 640px){
  .topbar-inner{flex-wrap:wrap;padding:10px 14px}
  .nav{width:100%}
  .grid-3,.grid-2{grid-template-columns:1fr}
}

.footer{border-top:1px solid var(--border);padding:18px 0;background:#f8fafc}
.footer-inner{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.muted{color:var(--muted);font-size:14px}

.input, textarea{
  width:100%; padding:10px 12px; border-radius:12px;
  border:1px solid var(--border); outline:none; background:#fff;
}
.input:focus, textarea:focus{border-color:#93c5fd; box-shadow:0 0 0 4px rgba(59,130,246,.15)}
.label{font-weight:700; font-size:14px; margin:10px 0 6px}
.alert{padding:12px 12px;border-radius:12px;border:1px solid var(--border);background:#f8fafc}
.alert-danger{border-color:#fecaca;background:#fff1f2}
.alert-success{border-color:#bbf7d0;background:#f0fdf4}



.mobile-bar{
  display:none;
}
@media(max-width:640px){
  .mobile-bar{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    border-top:1px solid var(--border);
    padding:10px;
    justify-content:space-around;
    z-index:1000;
  }
}



















/* ================================
   GLOBAL BLUE BUTTON SYSTEM
   ================================ */

:root {
  --btn-blue: #1565c0;
  --btn-blue-hover: #0d47a1;
  --btn-blue-light: #e3f2fd;
  --btn-border-blue: #1565c0;
}

/* Base button */
.btn,
button,
input[type="submit"],
input[type="button"],
a.btn {
  background-color: var(--btn-blue) !important;
  color: #ffffff !important;
  border: 1px solid var(--btn-border-blue) !important;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover {
  background-color: var(--btn-blue-hover) !important;
  color: #ffffff !important;
}

/* Outline buttons → BLUE outline */
.btn-outline {
  background-color: transparent !important;
  color: var(--btn-blue) !important;
  border: 2px solid var(--btn-blue) !important;
}

.btn-outline:hover {
  background-color: var(--btn-blue) !important;
  color: #ffffff !important;
}

/* Light buttons → blue-tinted */
.btn-light {
  background-color: var(--btn-blue-light) !important;
  color: var(--btn-blue) !important;
  border: 1px solid var(--btn-blue) !important;
}

.btn-light:hover {
  background-color: var(--btn-blue) !important;
  color: #ffffff !important;
}

/* Disabled */
.btn:disabled,
button:disabled,
input:disabled {
  background-color: #b0bec5 !important;
  border-color: #b0bec5 !important;
  color: #ffffff !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Button links inside cards */
.card a.btn {
  margin-top: 6px;
}

/* Mobile tap comfort */
@media (max-width: 640px) {
  .btn,
  button {
    min-height: 44px;
  }
}



.user-link {
  color: var(--btn-blue);
  font-weight: 600;
}
.user-link:hover {
  text-decoration: underline;
}
