:root{
  --bpom-navy:#0a3a63;
  --bpom-blue:#0c6aa6;
  --bpom-sky:#00a6d6;
  --bpom-gold:#f4c95d;
  --bpom-mint:#6fd3c4;
  --bg-soft:#edf6fb;
  --glass:rgba(255,255,255,.78);
  --border:rgba(255,255,255,.56);
  --text:#0f2742;
  --muted:#69819b;
}
*{box-sizing:border-box}
body{font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#dff2fa,#f7fbfe 34%,#d6edf8 70%,#f7f4ea);color:var(--text)}
.login-body,.app-body{min-height:100vh;overflow-x:hidden}
.animated-bg{position:fixed;inset:0;background:
 radial-gradient(circle at 10% 20%, rgba(12,106,166,.22), transparent 28%),
 radial-gradient(circle at 80% 10%, rgba(244,201,93,.18), transparent 22%),
 radial-gradient(circle at 50% 80%, rgba(111,211,196,.15), transparent 30%);
 filter:blur(10px);animation:floatBg 12s ease-in-out infinite alternate;z-index:-1}
@keyframes floatBg{from{transform:scale(1) translateY(0)}to{transform:scale(1.05) translateY(-8px)}}
.glass-card{background:var(--glass);backdrop-filter:blur(18px);border:1px solid var(--border);border-radius:28px;box-shadow:0 20px 45px rgba(7,40,75,.08)}
.login-card{max-width:1120px;overflow:hidden}
.hero-panel{background:linear-gradient(145deg,var(--bpom-blue),#136dad 42%,var(--bpom-navy) 78%,#07253f)}
.brand-icon,.avatar-circle{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--bpom-blue),var(--bpom-sky));color:#fff;font-size:1.35rem;box-shadow:0 12px 30px rgba(12,106,166,.28)}
.avatar-circle{width:46px;height:46px;border-radius:16px;font-weight:700;font-size:1rem}
.bpom-brand-icon{background:linear-gradient(135deg,var(--bpom-gold),#f6df92 45%,var(--bpom-blue));color:#07385f}
.feature-pill{display:flex;gap:.5rem;align-items:center;background:rgba(255,255,255,.14);padding:.75rem .9rem;border:1px solid rgba(255,255,255,.18);border-radius:16px}
.input-group-modern .input-group-text,.input-group-modern .form-control,.input-group-modern .btn{border-radius:18px!important}
.input-group-modern .input-group-text{background:#edf7fd;border-right:none}
.input-group-modern .form-control{border-left:none}
.app-shell{display:grid;grid-template-columns:300px 1fr;gap:1.25rem;padding:1.25rem;min-height:100vh}
.sidebar{padding:1.25rem;display:flex;flex-direction:column;justify-content:space-between;position:sticky;top:1.25rem;height:calc(100vh - 2.5rem)}
.premium-sidebar{background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(240,249,255,.74));overflow:hidden}
.sidebar-banner{background:linear-gradient(135deg,var(--bpom-navy),var(--bpom-blue) 55%,var(--bpom-sky));color:#fff;padding:1rem;border-radius:22px;box-shadow:0 18px 36px rgba(12,106,166,.22)}
.sidebar-footer-meta{padding-top:1rem;border-top:1px dashed rgba(105,129,155,.25)}
.mini-status-list{display:flex;flex-direction:column;gap:.55rem}.mini-status-list span{display:flex;gap:.6rem;align-items:center;color:var(--muted)}
.brand-wrap{display:flex;align-items:center;gap:.85rem}
.nav-modern{display:flex;gap:.8rem;align-items:center;padding:.95rem 1rem;border-radius:18px;color:#31516f;font-weight:700;transition:.25s ease}
.nav-modern:hover,.nav-modern.active{background:linear-gradient(135deg,var(--bpom-blue),var(--bpom-navy));color:#fff;transform:translateX(3px);box-shadow:0 16px 32px rgba(12,106,166,.18)}
.main-content{min-width:0}
.premium-topbar{padding:1rem 1.2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(236,249,254,.8))}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:1rem}.topbar-actions{flex-wrap:wrap;justify-content:flex-end}
.bpom-seal{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,var(--bpom-gold),#fff1bf);color:var(--bpom-navy);font-size:1.35rem;box-shadow:0 16px 30px rgba(244,201,93,.28)}
.eyebrow{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--bpom-blue);font-weight:700}
.btn-topbar{position:relative;border:none;background:#fff;color:var(--bpom-navy);padding:.8rem 1rem;border-radius:16px;box-shadow:0 10px 20px rgba(7,40,75,.08)}
.btn-topbar-danger{background:#fff3f3;color:#b42318}
.notif-badge{position:absolute;top:-6px;right:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e11d48;color:#fff;font-size:.72rem;display:grid;place-items:center;font-weight:700}
.user-chip{display:flex;align-items:center;gap:.8rem;background:rgba(255,255,255,.76);padding:.45rem .7rem;border-radius:18px}
.premium-user-chip{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 10px 20px rgba(7,40,75,.05)}
.hero-overview{position:relative;overflow:hidden;padding:1.6rem 1.6rem;background:linear-gradient(135deg,var(--bpom-navy),#08558c 38%,var(--bpom-blue) 70%,var(--bpom-mint));color:#fff;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.hero-title{font-size:1.95rem;font-weight:800;max-width:760px;margin-bottom:.55rem}.hero-text{max-width:860px;color:rgba(255,255,255,.82)}
.hero-orbs{display:flex;gap:14px;align-items:center}.hero-orbs span{width:74px;height:74px;border-radius:999px;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.2)}
.stat-card{padding:1.25rem;display:flex;align-items:center;gap:1rem;transition:.25s ease}
.pulse-hover:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 24px 50px rgba(12,106,166,.12)}
.stat-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:1.45rem;background:#fff;color:var(--bpom-blue);box-shadow:0 12px 24px rgba(7,40,75,.08)}
.stat-card-primary{border-top:5px solid var(--bpom-blue)}
.stat-card-success{border-top:5px solid var(--bpom-mint)}
.stat-card-warning{border-top:5px solid var(--bpom-gold)}
.stat-label{color:var(--muted);font-weight:700}.stat-value{font-size:2rem;font-weight:800;line-height:1.1}
.summary-row{display:flex;justify-content:space-between;align-items:center;padding:.8rem 0;border-bottom:1px dashed rgba(105,129,155,.25)}
.summary-row:last-child{border-bottom:none;padding-bottom:0}
.floating-panel{position:relative;overflow:hidden}
.floating-panel::after{content:'';position:absolute;inset:auto -24px -36px auto;width:122px;height:122px;background:radial-gradient(circle, rgba(12,106,166,.12), transparent 70%);border-radius:999px}
.security-list li{display:flex;align-items:center;gap:.6rem;margin-bottom:.75rem}
.premium-calendar-panel{position:relative}
.toolbar-premium{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:center}
.legend-bar{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center}.legend-item{display:flex;align-items:center;gap:.45rem;padding:.48rem .8rem;border-radius:999px;background:#f6fbfe;border:1px solid rgba(12,106,166,.08);font-size:.9rem;color:#33516e}.legend-dot{width:11px;height:11px;border-radius:999px;display:inline-block}
.notification-list{display:flex;flex-direction:column;gap:.85rem;max-height:340px;overflow:auto;padding-right:.15rem}.notification-empty{padding:.95rem;border-radius:18px;background:#f5fbfe;color:var(--muted)}
.notification-item{display:grid;grid-template-columns:10px 1fr;gap:.8rem;background:#f9fcfe;border:1px solid rgba(12,106,166,.08);padding:.8rem .9rem;border-radius:18px;box-shadow:0 8px 20px rgba(7,40,75,.03)}
.notification-color{border-radius:999px}.notification-title{color:#12385d;font-weight:600}.notification-meta{color:var(--muted);font-size:.8rem;margin-top:.15rem}
.btn-export{background:linear-gradient(135deg,var(--bpom-blue),var(--bpom-navy));color:#fff;border:none;padding:.75rem 1rem;box-shadow:0 14px 28px rgba(12,106,166,.18)}
#calendar{min-height:760px}
.fc .fc-toolbar-title{font-size:1.25rem;font-weight:800;color:#14395d}
.fc .fc-button{border-radius:14px!important;border:none!important;background:linear-gradient(135deg,var(--bpom-blue),var(--bpom-navy))!important;padding:.55rem .9rem!important;box-shadow:0 12px 24px rgba(12,106,166,.18)!important}
.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background:linear-gradient(135deg,#0a436f,#082c4c)!important}
.fc .fc-daygrid-day,.fc .fc-scrollgrid{border-color:rgba(148,163,184,.22)!important}
.fc .fc-daygrid-day-number{color:#33516e;font-weight:700}
.fc .fc-col-header-cell-cushion{color:#14395d;font-weight:800}
.fc-event{padding:4px 7px;border-radius:12px;border:none!important;box-shadow:0 10px 18px rgba(7,40,75,.12);font-weight:600}
.table thead th{font-size:.86rem;text-transform:uppercase;color:var(--muted);border-bottom-color:rgba(105,129,155,.25)}
.table tbody tr{transition:.2s ease}.table tbody tr:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(15,23,42,.04)}
.form-control,.form-select,.btn{padding:.75rem 1rem}.form-control,.form-select{border-color:rgba(148,163,184,.26)}
.form-control:focus,.form-select:focus{border-color:rgba(12,106,166,.35);box-shadow:0 0 0 .25rem rgba(0,166,214,.12)}
.modal-content{background:rgba(255,255,255,.96);backdrop-filter:blur(16px)}
.premium-toast{backdrop-filter:blur(10px);box-shadow:0 16px 32px rgba(7,40,75,.18)}
@media (max-width: 991.98px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;top:0}.premium-topbar{flex-direction:column;align-items:flex-start}.topbar-actions{justify-content:flex-start}.hero-overview{flex-direction:column;align-items:flex-start}.hero-orbs{display:none}#calendar{min-height:620px}}


.public-calendar-page .public-shell{min-height:100vh;}
.public-topbar{background:linear-gradient(135deg,#0d3b8e 0%,#0b5ed7 50%,#21a366 100%);padding:18px 0;box-shadow:0 12px 28px rgba(16,24,40,.18);position:sticky;top:0;z-index:1000;}
.public-brand-icon{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.4rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.25);}
.public-brand-title{font-size:1.5rem;font-weight:800;color:#fff;line-height:1.1;}
.public-brand-subtitle{color:rgba(255,255,255,.82);font-size:.95rem;}
.public-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 28px;flex-wrap:wrap;}
.public-badge{display:inline-block;padding:6px 12px;border-radius:999px;background:rgba(13,110,253,.12);color:#0d6efd;font-weight:700;font-size:.82rem;margin-bottom:12px;}
.public-title{font-size:clamp(1.25rem,2vw,2rem);font-weight:800;max-width:980px;}
.public-text{max-width:820px;color:#64748b;}
.public-calendar-panel{min-height:70vh;}
@media (max-width: 768px){.public-brand-title{font-size:1.1rem}.public-hero{padding:18px}}

.fc .fc-daygrid-event{margin:2px 3px!important;}
.fc-event{max-width:100%;overflow:hidden;}
.fc-event .fc-event-main{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fc .fc-daygrid-dot-event .fc-event-title,
.fc .fc-daygrid-block-event .fc-event-title,
.fc .fc-h-event .fc-event-title,
.fc .fc-list-event-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;}
.fc .fc-event-title-container{min-width:0;}
.fc .fc-daygrid-event-harness{max-width:100%;}
.public-calendar-panel .toolbar-premium{padding-bottom:.25rem;}
.detail-list{display:flex;flex-direction:column;gap:12px;}
.detail-row{display:flex;justify-content:space-between;gap:18px;padding:12px 14px;border-radius:16px;background:#f8fbfe;border:1px solid rgba(148,163,184,.18);}
.detail-label{font-weight:700;color:#33516e;}
.detail-value{text-align:right;color:#0f2742;font-weight:600;max-width:65%;word-break:break-word;}
@media (max-width: 768px){.detail-row{flex-direction:column;gap:6px}.detail-value{text-align:left;max-width:100%;}}


/* public calendar refinements */
.public-topbar{padding:14px 0}
.public-calendar-panel{padding-bottom:1rem}
.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1rem;gap:.75rem;flex-wrap:wrap}
.fc .fc-toolbar-chunk{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.fc .fc-list-event:hover td{background:#eff8ff}
.fc .fc-bg-event.holiday-background{opacity:1!important;background:rgba(239,68,68,.09)!important}
.fc .holiday-background .fc-event-title,
.fc .holiday-background .fc-event-main,
.fc .holiday-background .fc-event-time{display:none!important}

.fc .fc-daygrid-day.fc-day-holiday{background:linear-gradient(180deg, rgba(254,242,242,.75), rgba(255,255,255,.98))}
.fc .fc-daygrid-day.fc-day-saturday,
.fc .fc-daygrid-day.fc-day-sunday{background:rgba(254,242,242,.38)}
.fc .holiday-date-number,
.fc .fc-day-saturday .fc-daygrid-day-number,
.fc .fc-day-sunday .fc-daygrid-day-number{color:#dc2626!important;font-weight:800}
.fc .fc-col-header-cell.fc-day-sat .fc-col-header-cell-cushion,
.fc .fc-col-header-cell.fc-day-sun .fc-col-header-cell-cushion{color:#dc2626!important}
.fc .fc-daygrid-day{position:relative}
.fc .fc-daygrid-day-frame{position:relative;min-height:100%}
.fc .fc-daygrid-day.fc-day-holiday::after{
  content:attr(data-holiday);
  position:absolute;
  left:6px;
  right:6px;
  bottom:4px;
  display:block;
  font-size:.68rem;
  line-height:1.1;
  color:#b91c1c;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  z-index:3;
  pointer-events:none;
}
.fc .fc-daygrid-day.fc-day-holiday .fc-daygrid-day-frame{padding-bottom:18px}
.holiday-legend{background:#fff5f5;border-color:rgba(239,68,68,.14);color:#991b1b}
.holiday-dot{background:#ef4444!important}
.calendar-tooltip .tooltip-inner{max-width:320px;text-align:left;background:#0f172a;padding:.8rem .9rem;border-radius:14px;box-shadow:0 14px 30px rgba(15,23,42,.28)}
.tooltip-calendar-content .tooltip-title{font-weight:800;margin-bottom:.35rem}
.tooltip-calendar-content .tooltip-line{font-size:.82rem;line-height:1.35}
.fc-event .fc-event-main{padding-right:2px}
.fc-daygrid-block-event .fc-event-time, .fc-daygrid-dot-event .fc-event-time{display:none}

@media (max-width: 991.98px){
  .public-topbar .container-fluid{align-items:flex-start!important}
  .public-topbar .btn{width:100%;justify-content:center}
  .public-brand-title{font-size:1.2rem;max-width:100%}
  .glass-card.public-calendar-panel{padding:1rem!important;border-radius:22px}
}

@media (max-width: 575.98px){
  body.public-calendar-page{padding-bottom:14px}
  .public-topbar{padding:12px 0 10px}
  .public-topbar .container-fluid{gap:.85rem!important}
  .public-brand-icon{width:44px;height:44px;border-radius:14px;font-size:1.1rem}
  .public-brand-title{font-size:1rem;line-height:1.2}
  .public-calendar-panel{min-height:auto}
  .public-calendar-panel .toolbar-premium{flex-direction:column;align-items:stretch;gap:.75rem}
  .public-calendar-panel .toolbar-premium h2{font-size:1.05rem;margin-bottom:0}
  .public-calendar-panel .form-control{min-width:0!important;width:100%}
  .legend-bar{gap:.45rem}
  .legend-item{font-size:.74rem;padding:.38rem .58rem;border-radius:999px}
  #calendar{min-height:0!important}
  .fc .fc-toolbar-title{font-size:1rem!important;text-align:center;width:100%}
  .fc .fc-toolbar.fc-header-toolbar{margin-bottom:.8rem}
  .fc .fc-button{padding:.45rem .65rem!important;font-size:.78rem!important;border-radius:12px!important}
  .fc .fc-col-header-cell-cushion{font-size:.78rem;padding:.35rem 0}
  .fc .fc-daygrid-day-number{font-size:.85rem;padding:.25rem .35rem}
  .fc .fc-daygrid-day-frame{min-height:74px}
  .fc .fc-daygrid-day-events{margin-top:2px}
  .fc .fc-daygrid-event{margin:1px 1px!important;border-radius:8px;box-shadow:0 4px 8px rgba(7,40,75,.08);font-size:.66rem;line-height:1.15}
  .fc .fc-daygrid-day.fc-day-holiday::after{font-size:.55rem;left:3px;right:3px;bottom:3px}
  .fc .fc-list-table td,.fc .fc-list-table th{font-size:.82rem}
  .fc-theme-standard td,.fc-theme-standard th{border-color:rgba(148,163,184,.18)}
}
