
    :root {
      --mv-primary: #04415f;
      --mv-secondary: #5fcf80;
      --mv-accent: #eef0f2;
      --mv-text: #444444;
    }

    .calendar-container {
      background: #fff;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      margin-bottom: 2rem;
    }

    /* Header Styling */
    .calendar-header {
      background-color: var(--mv-primary);
      color: white;
      padding: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .calendar-header h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 700;
      color: white;
    }

    .btn-nav {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      transition: 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-nav:hover {
      background: var(--mv-secondary);
      transform: scale(1.1);
    }

    /* Grid System */
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      text-align: center;
      padding: 20px;
    }

    .day-name {
      color: #888;
      font-weight: 600;
      margin-bottom: 10px;
      text-transform: uppercase;
      font-size: 0.85rem;
    }

    .calendar-day {
      height: 90px;
      border: 1px solid #f0f0f0;
      position: relative;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding: 8px;
      border-radius: 8px;
      margin: 2px;
    }

    .calendar-day:hover {
      background-color: #f9f9f9;
      border-color: var(--mv-secondary);
      z-index: 2;
    }

    .calendar-day.active {
      background-color: #e6f7ed;
      border: 2px solid var(--mv-secondary);
    }

    /* --- Style วันเสาร์-อาทิตย์ --- */
    .calendar-day.weekend {
      background-color: #d64e1944; /* สีพื้นหลังที่ต่างออกไป */
    }

    .calendar-day.today {
      background-color: #fff8e1;
    }

    .calendar-day.today .day-number {
      background-color: var(--mv-primary);
      color: white;
      border-radius: 50%;
      width: 25px;
      height: 25px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .day-number {
      font-weight: 600;
      font-size: 0.9rem;
      margin-bottom: 5px;
    }

    /* Event Indicators */
    .event-dot {
      width: 100%;
      font-size: 0.7rem;
      padding: 2px 5px;
      border-radius: 4px;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: white;
      text-align: left;
    }

    .event-academic { background-color: #3b82f6; } /* Blue */
    .event-activity { background-color: #10b981; } /* Green */
    .event-holiday { background-color: #ef4444; }  /* Red */

    /* Details Panel */
    .event-details {
      background: #fdfdfd;
      border-radius: 15px;
      padding: 30px;
      border: 1px solid #eee;
      height: 100%;
    }

    .selected-date-title {
      color: var(--mv-primary);
      border-bottom: 3px solid var(--mv-secondary);
      padding-bottom: 10px;
      margin-bottom: 20px;
      display: inline-block;
    }

    .event-card {
      background: white;
      border-left: 5px solid var(--mv-secondary);
      padding: 15px;
      margin-bottom: 15px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.05);
      transition: transform 0.2s;
    }

    .event-card:hover {
      transform: translateX(5px);
    }

    .event-card h4 {
      font-size: 1.1rem;
      margin-bottom: 5px;
      color: var(--mv-text);
    }

    .event-time {
      font-size: 0.85rem;
      color: #6c757d;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .badge-category {
      font-size: 0.7rem;
      padding: 4px 8px;
      border-radius: 12px;
      color: white;
      margin-left: auto;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .calendar-day {
        height: 60px;
        padding: 4px;
      }
      .event-dot {
        height: 6px;
        width: 6px;
        border-radius: 50%;
        padding: 0;
        margin: 2px auto;
        text-indent: -9999px;
      }
      .day-number {
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
      }
    }

