:root {
    --bg: #0b0d10;
    --bg-alt: #111317;
    --surface: #181b20;
    --border: #2a2d33;
    --text: #d7d9dd;
    --text-light: #9ca3af;
    --primary: #3b82f6;
}

/* GLOBAL */
body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: Inter, sans-serif !important;
}

/* PANELS / CARDS */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
}

/* SIDEBAR */
.sidebar {
    background: var(--bg-alt) !important;
    border-right: 1px solid var(--border) !important;
}

.sidebar .nav-link {
    color: var(--text-light) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
}
input[type="file"].form-control {
    padding: 6px;
    height: auto;
    cursor: pointer;
}

/* Pataisom patį mygtuką (Chrome, Edge, nauji Firefox) */
input[type="file"].form-control::file-selector-button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover {
    background: #1e40af;
}

.sidebar .nav-link:hover {
    background: var(--surface) !important;
    color: var(--text) !important;
}

.sidebar .active > .nav-link {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-left: 3px solid var(--primary) !important;
}

/* TOPBAR */
.topbar {
    background: var(--bg-alt) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* BUTTONS */
.btn-primary {
    background: var(--primary) !important;
    border: none !important;
    border-radius: 8px !important;
}

.btn-primary:hover {
    background: #fcce37 !important;
	color: #000 !important;
}

/* TABLES */
.table thead {
    background: var(--surface) !important;
    color: var(--text-light) !important;
}

.table tbody tr {
    background: var(--bg-alt) !important;
    border-bottom: 1px solid var(--border) !important;
}

.table tbody tr:hover {
    background: var(--surface) !important;
}

/* FORMS */
.form-control {
    background: var(--bg-alt) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary) !important;
}

/* =========================
   NOTIFICATIONS (Topbar)
   ========================= */

/* wrapper near the bell */
.notif-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* bell button */
.notificationbutton{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.notificationbutton:hover{
  background: rgba(0,0,0,.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.notificationbutton:active{
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}

/* red badge */
.notif-badge{
  position: absolute;
  top: 6px;
  right: 7px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e74a3b;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(231,74,59,.35);
  border: 1px solid rgba(255,255,255,.65);
}

/* dropdown panel */
.notif-dropdown{
  position: fixed;                 /* stays above content */
  top: 64px;                       /* adjust to your topbar height */
  right: 18px;
  width: min(420px, calc(100vw - 24px));
  max-height: 72vh;
  display: none;                   /* JS toggles */
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 99999;                  /* above everything */
}

.notif-dropdown.show{
  display: block;
}

/* header */
.notif-header{
  padding: 12px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(to bottom, rgba(0,0,0,.02), rgba(0,0,0,0));
}

/* list area */
.notif-list{
  max-height: calc(72vh - 92px);
  overflow: auto;
  padding: 6px 0;
}

/* items (assumes JS renders <a class="notif-item">...) */
.notif-item{
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background .12s ease;
}

.notif-item:hover{
  background: rgba(0,0,0,.03);
}

.notif-title{
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}

.notif-msg{
  font-size: 12px;
  opacity: .82;
  margin-top: 2px;
  line-height: 1.35;
}

.notif-time{
  font-size: 11px;
  opacity: .65;
  margin-top: 5px;
}

/* empty state */
.notif-empty{
  padding: 12px 14px;
  opacity: .75;
  font-size: 12px;
}

/* footer link */
.notif-footer{
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.notif-footer-link{
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #3b82f6;
}

.notif-footer-link:hover{
  text-decoration: underline;
}
.btn-primary {
    background: #000 !IMPORTANT;
}

body.bg-gradient-primary {
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 36%), radial-gradient(circle at 80% 85%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 42%), linear-gradient(135deg, #fcce37, #cba526, var(--dark)) !IMPORTANT;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.input-group-append .btn, .input-group-prepend .btn {
    z-index: 0 !IMPORTANT;
}