/* Vomoloko unified brand theme — взято с vomoloko.ru template/css/style.css.
   Brand colors: #39ABE2 (primary blue), #5FD07F (accent green), #231F20 (text). */

@font-face {
  font-family: 'PTSans';
  src: url('/static/assets/fonts/PTSans-Regular.woff2') format('woff2'),
       url('/static/assets/fonts/PTSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pribambas';
  src: url('/static/assets/fonts/Pribambas.woff2') format('woff2'),
       url('/static/assets/fonts/Pribambas.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --vmlk-primary:        #39ABE2;
  --vmlk-primary-dark:   #2891c4;
  --vmlk-primary-darker: #1f7ba8;
  --vmlk-accent:         #5FD07F;
  --vmlk-accent-dark:    #4ab369;
  --vmlk-text:           #231F20;
  --vmlk-text-muted:     #555;
  --vmlk-text-light:     #888;
  --vmlk-bg:             #fafafa;
  --vmlk-bg-soft:        #F5F5F5;
  --vmlk-border:         #C3C3C3;
  --vmlk-border-soft:    #F1F1F1;
  --vmlk-warn:           #d4a000;
  --vmlk-danger:         #c44;
}

/* Global font + base */
html, body {
  font-family: 'PTSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--vmlk-text);
  background: var(--vmlk-bg);
}

/* Logo — встраиваем как <img class="vmlk-logo" src="/static/assets/logo.svg"/> */
.vmlk-logo {
  height: 32px; width: auto; display: block;
}
.vmlk-logo-text {
  font-family: 'Pribambas', cursive;
  color: var(--vmlk-primary);
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-left: 10px;
  white-space: nowrap;
}

/* Topbar: blue brand bar with logo + nav */
.topbar {
  background: var(--vmlk-primary);
  color: white;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
}
.topbar-brand h1 {
  margin: 0; font-size: 16px; font-weight: 500;
  font-family: 'PTSans', sans-serif; color: white;
}
.topbar .nav {
  display: inline-flex; align-items: center; gap: 4px;
}
.topbar .nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  transition: background .15s, color .15s;
}
.topbar .nav a:hover { background: rgba(255,255,255,.12); color: white; }
.topbar .nav a.active {
  color: white; font-weight: 600;
  background: rgba(255,255,255,.18);
}
.topbar .user { font-size: 13px; opacity: 0.9; color: white; }
.topbar-logout, .topbar a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.topbar-logout:hover { color: white; }

/* Common buttons aligned with brand */
button.btn-primary, button.brand-primary {
  background: var(--vmlk-primary); color: white; border: 0;
  padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 13px;
  font-family: 'PTSans', sans-serif;
}
button.btn-primary:hover, button.brand-primary:hover { background: var(--vmlk-primary-dark); }
button.brand-accent {
  background: var(--vmlk-accent); color: white; border: 0;
  padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 13px;
}
button.brand-accent:hover { background: var(--vmlk-accent-dark); }

/* Headings */
h1, h2, h3 { font-family: 'PTSans', sans-serif; color: var(--vmlk-primary); }

/* Panel cards */
.panel {
  background: white; padding: 16px; border-radius: 6px;
  margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid var(--vmlk-border-soft);
}

/* Links default */
a { color: var(--vmlk-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
