/* /var/www/html/nc/assets/css/app.css
   Modern Bootstrap-enhanced theme (Buug NHS colors)
   Primary: #0303FD, Red: #F2161C, Green: #1A9224
*/

:root{
  --brand-blue:#0303FD;
  --brand-blue-soft:#5C5CF9;
  --brand-red:#F2161C;
  --brand-green:#1A9224;

  --bg:#F6F8FF;
  --text:#0f172a;
  --muted:#64748b;

  --card:#ffffff;
  --border:rgba(15,23,42,.10);
  --shadow:0 14px 36px rgba(2,6,23,.08);

  --radius-xl:18px;
  --radius-lg:14px;
  --radius-md:12px;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 700px at 10% 0%, rgba(3,3,253,.08), transparent 55%),
              radial-gradient(1000px 600px at 90% 10%, rgba(242,22,28,.05), transparent 55%),
              var(--bg);
  color:var(--text);
}

/* Helpers */
.small-muted{ font-size:.875rem; color:var(--muted); }
.rounded-xl{ border-radius:var(--radius-xl)!important; }
.shadow-soft{ box-shadow:var(--shadow)!important; }
.border-soft{ border:1px solid var(--border)!important; }
.text-brand{ color:var(--brand-blue)!important; }
.bg-brand-subtle{ background:rgba(3,3,253,.07)!important; }

/* Navbar / header branding */
.navbar{
  backdrop-filter:saturate(140%) blur(10px);
}
.navbar.bg-white{
  background:rgba(255,255,255,.88)!important;
}
.navbar-brand{
  text-decoration:none;
}
.brand-logo{
  width:48px;
  height:48px;
  border-radius:14px;
  object-fit:cover;
  border:2px solid rgba(3,3,253,.12);
  box-shadow:0 8px 18px rgba(2,6,23,.10);
}

/* Cards */
.card-soft{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
}
.card-soft .card-body{
  border-radius:var(--radius-xl);
}

/* Icon pill */
.icon-pill{
  width:40px;
  height:40px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  box-shadow:0 10px 22px rgba(2,6,23,.08);
}

/* Dropbox (Drag & Drop area) */
.dropbox{
  border:2px dashed rgba(3,3,253,.30);
  border-radius:var(--radius-xl);
  background: linear-gradient(180deg, rgba(3,3,253,.06), rgba(3,3,253,.03));
  padding:16px;
  transition:all .15s ease;
}
.dropbox.dragover{
  background: linear-gradient(180deg, rgba(3,3,253,.10), rgba(3,3,253,.05));
  border-color:rgba(3,3,253,.55);
  transform:translateY(-1px);
}

/* Preview iframe */
.preview-frame{
  border-radius:var(--radius-xl);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 10px 26px rgba(2,6,23,.08);
}
.preview-frame iframe{
  width:100%;
  height:100%;
  border:0;
  border-radius:var(--radius-xl);
}

/* Bootstrap component overrides */
.btn{
  border-radius:14px;
  font-weight:700;
  letter-spacing:.2px;
}
.btn-primary{
  background:var(--brand-blue)!important;
  border-color:var(--brand-blue)!important;
  box-shadow:0 10px 22px rgba(3,3,253,.20);
}
.btn-primary:hover{
  filter:brightness(.95);
  transform:translateY(-1px);
}
.btn-outline-primary{
  border-color:rgba(3,3,253,.35)!important;
  color:var(--brand-blue)!important;
}
.btn-outline-primary:hover{
  background:rgba(3,3,253,.08)!important;
  color:var(--brand-blue)!important;
}
.btn-outline-danger{
  border-color:rgba(242,22,28,.35)!important;
}
.btn-outline-danger:hover{
  background:rgba(242,22,28,.08)!important;
  color:var(--brand-red)!important;
}

/* Inputs */
.form-control, .form-select{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  box-shadow:none!important;
  transition:border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.form-control:focus, .form-select:focus{
  border-color:rgba(3,3,253,.55);
  box-shadow:0 0 0 .25rem rgba(3,3,253,.12)!important;
}
.form-control-lg, .form-select-lg{
  padding:.75rem 1rem;
  font-size:1rem;
}
.form-label{
  font-weight:700;
  color:rgba(15,23,42,.72);
}

/* Table */
.table{
  margin-bottom:0;
}
.table thead th{
  font-size:.85rem;
  color:rgba(15,23,42,.60);
  border-bottom:1px solid rgba(15,23,42,.10)!important;
}
.table tbody td{
  border-color:rgba(15,23,42,.08)!important;
}
.table-hover tbody tr:hover{
  background:rgba(3,3,253,.03);
}

/* Badges */
.badge.text-bg-success{ background:rgba(26,146,36,.14)!important; color:var(--brand-green)!important; }
.badge.text-bg-danger{ background:rgba(242,22,28,.14)!important; color:var(--brand-red)!important; }

/* Alerts */
.alert{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
}

/* Modal */
.modal-content{
  border-radius:22px;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 18px 45px rgba(2,6,23,.18);
}
.modal-header{
  border-bottom:1px solid rgba(15,23,42,.08);
}
.modal-footer{
  border-top:1px solid rgba(15,23,42,.08);
}

/* Links */
a{ text-decoration:none; }
a:hover{ text-decoration:none; }

/* Responsive tweaks */
@media (max-width: 991px){
  .navbar .btn{ border-radius:12px; }
  .icon-pill{ width:38px;height:38px;border-radius:14px; }
}
