    /* Dark transparent backdrop overlay when popover is open */
    body:has(.calendar-event-popover-active) {
        overflow: hidden; /* Prevents background scrolling while open */
    }
    body:has(.calendar-event-popover-active)::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6); /* Tint darkness level */
        z-index: 1040; /* Sits right under the popover box */
    }

   /* Force popover to center perfectly over the calendar container wrapper */
    #calendar-wrapper {
        position: relative;
    }

    .popover.calendar-center-modal {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 1060 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        border: none;
        max-width: 90%;
        width: 250px;
        
        /* ADJUST HEIGHT HERE */
        min-height: 150px; /* Forces the box to be taller than the content */
        display: flex;
        flex-direction: column;
    }

    /* Keeps the popover body filling the newly added vertical space neatly */
    .popover.calendar-center-modal .popover-body {
        flex-grow: 1;
    }

    /* Ensure the native Bootstrap pointer arrow remains clearly visible */
    .popover.calendar-center-modal .arrow {
        display: block !important;
    }
 
 

.content {
  padding: 7rem 0; 
  height: 100%;}

h2 {
  font-size: 20px; }

.form-control:active, .form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none; }

#calendar {
  max-width: 900px;
  margin: 0 auto; }
  #calendar .fc-view-container {
    padding: 10px;
    background-color: #fff;
    height: 100%;
    /* Reconfigured box-shadow to spread left, right, and top only */
    -webkit-box-shadow: 0px -10px 20px -10px rgba(0, 0, 0, 0.1), 
                        10px 0px 20px -10px rgba(0, 0, 0, 0.1), 
                        -10px 0px 20px -10px rgba(0, 0, 0, 0.1);
    box-shadow: 0px -10px 20px -10px rgba(0, 0, 0, 0.1), 
                10px 0px 20px -10px rgba(0, 0, 0, 0.1), 
                -10px 0px 20px -10px rgba(0, 0, 0, 0.1);
}
	


