
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
  }

  .calendar-container {
    display: grid;
    /* 1fr for calendar, auto for sidebar */
    grid-template-columns: 1fr auto;
    height: 100vh;
    overflow: hidden;
    gap: 1rem;
    padding: 1rem;
  }

  .calendar-panel {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e3e6f0;
    background: var(--primary-light);
  }

  .calendar-header h4 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
  }

  .calendar-header .btn-group .btn {
    border: none;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: var(--primary-color);
  }
  .calendar-header .btn-group .btn:hover {
    background: rgba(78, 115, 223, 0.1);
  }

  #calendar {
    flex: 1;
    padding: 1rem;
  }
  #calendar table thead th{
    background: var(--primary-color);
    padding: 5px 0;
    
  }
  #calendar table thead th a{
    color: #ffffff;
    text-decoration: none;
  }
  .fc-daygrid-day-top a{
    color: var(--primary-color) !important;
    text-decoration: none !important;
  }
  .fc .fc-daygrid-day.fc-day-today{
    background-color: var(--primary-color-light) !important;
  }

  .fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
  }

  .fc .fc-button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    box-shadow: none;
  }
  .fc .fc-button:disabled {
    opacity: 0.5;
  }
  .fc .fc-button:hover, .fc .fc-button.fc-button-active {
    background: #2e59d9;
  }

  .fc-daygrid-event {
    background: var(--primary-light) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 0.5rem;
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 2px 4px;
  }

  .sidebar-panel {
    width: 0;
    overflow: hidden;
    background: #fff;
    border-left: 2px solid #e3e6f0;
    border-radius: var(--card-radius) 0 0 var(--card-radius);
    box-shadow: -6px 0 18px rgba(0,0,0,0.05);
    transition: width 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
  }
  .sidebar-panel.show {
    width: 380px;
  }

  .sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e3e6f0;
    position: relative;
  }
  .sidebar-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
  }
  .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.25rem;
    background: none;
    border: none;
    color: #6c757d;
  }

  .sidebar-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
  }

  @media (max-width: 768px) {
    .calendar-container {
      grid-template-columns: 1fr;
    }
    .sidebar-panel.show {
      position: absolute;
      top: 0;
      right: 0;
      height: 100vh;
      z-index: 10;
      width: 100%;
      border-radius: 0;
    }
  }
