/* assets/panel.css
   Styl bazowy panelu inspirowany wyglądem prostego, przejrzystego interfejsu typu Librus.
   Kolory, odstępy i układ skoncentrowane na czytelności i wyrównaniu.
*/

:root{
  --primary:#0b63a7;
  --primary-dark:#054977;
  --bg:#f5f7fb;
  --card:#ffffff;
  --muted:#6b7280;
  --danger:#c53030;
  --radius:10px;
  --max-width:980px;
  --gap:18px;
  --edge-padding:20px;
  --shadow: 0 6px 18px rgba(12,20,36,0.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg, var(--bg), #eef3fa 120px);
  color:#111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-size:15px;
  line-height:1.35;
}

/* Page wrapper */
.site{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* Header */
.header{
  background:var(--primary);
  color:#fff;
  padding:14px var(--edge-padding);
  box-shadow: 0 2px 6px rgba(5,40,80,0.08);
}
.header .bar{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  font-size:18px;
}
.logo .mark{
  width:36px;
  height:36px;
  background:linear-gradient(180deg,#fff2,#fff4);
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--primary);
  font-weight:700;
  box-shadow: inset 0 -1px rgba(0,0,0,0.04);
}
.header nav{margin-left:auto}
.header nav a{
  color:rgba(255,255,255,0.95);
  text-decoration:none;
  margin-left:14px;
  font-weight:500;
}
.header small{opacity:0.9}

/* Main container */
.container{
  max-width:var(--max-width);
  margin:26px auto;
  width:calc(100% - 40px);
  padding:20px;
}

/* Card / section */
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
  margin-bottom:var(--gap);
}

/* Headings */
h1,h2,h3{margin:0 0 12px 0}
h2{font-size:20px}
h3{font-size:16px}

/* Forms */
.form-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
label{font-weight:600; color:#111827; font-size:13px}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea{
  padding:10px 12px;
  border:1px solid #e6e9ef;
  border-radius:8px;
  background:#fff;
  font-size:14px;
  outline:none;
}
input:focus, textarea:focus, select:focus{
  border-color:var(--primary);
  box-shadow:0 6px 18px rgba(11,99,167,0.08);
}

/* Buttons */
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  border:0;
  background:var(--primary);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(11,99,167,0.12);
}
.btn:active{transform:translateY(1px)}
.btn.ghost{
  background:transparent;
  color:var(--primary);
  border:1px solid rgba(11,99,167,0.12);
  box-shadow:none;
}
.btn.danger{
  background:var(--danger);
  box-shadow:0 6px 14px rgba(197,48,48,0.12);
}

/* Messages */
.msg, .error{
  border-radius:8px;
  padding:10px 12px;
  margin-bottom:12px;
}
.msg{background:#e6f4ff; color:var(--primary); border:1px solid rgba(11,99,167,0.08)}
.error{background:#fff5f5; color:var(--danger); border:1px solid rgba(197,48,48,0.08)}

/* Small text / utilities */
.small{font-size:13px; color:var(--muted)}
.center{text-align:center}
.row{
  display:flex;
  gap:12px;
  align-items:center;
}
.avatar{
  border-radius:8px;
  border:1px solid #e6e9ef;
  box-shadow:0 6px 12px rgba(10,20,40,0.04);
  max-width:160px;
  height:auto;
  display:block;
}

/* Layout adjustments for account page */
.konto-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
}
@media(min-width:880px){
  .konto-grid{grid-template-columns: 1fr 360px}
  .konto-grid .left{min-width:0}
}

/* Footer */
.footer{
  margin-top:auto;
  background:#fff;
  border-top:1px solid #eef2f6;
  padding:16px var(--edge-padding);
  color:var(--muted);
  font-size:13px;
}
.footer .inner{max-width:var(--max-width); margin:0 auto; text-align:center}

/* misc */
.center-block{margin:0 auto; text-align:center}
