
/*  Events display */
.events-container {
    overflow-y: scroll;
    width: 50%;
    float: right;
    margin: 0px auto;
    display: inline-block;
    padding: 0px;
    border-radius: 5px; /* Added border-radius property */
    border: 1px solid #ccc; /* Added border property for border color and thickness */
    padding: 0; }
    @media (max-width: 767.98px) {
      .events-container {
        width: 100%;
        height: auto; } }
  
  .events-container:after {
    clear: both; }
  
  .event-card {
    padding: 20px 0;
    max-width: 100%;
    display: block;
    background: #fff;
    border: none !important;
    margin: 20px;
    margin-left: 12px; }
    @media (max-width: 991.98px) {
      .event-card {
        margin: 10px; } }
    @media (max-width: 767.98px) {
      .event-card {
        margin: 0;
        background: #e6e6e6; } }
  
  .event-count, .event-name, .event-cancelled {
    display: inline;
    padding: 0 10px;
    font-size: 1rem; }
  
  .event-count {
    color: #7e0cf5;
    text-align: right; }
  
  .event-name {
    padding-right: 0;
    text-align: left; 
    display: inline-table;
  }
  
  .event-cancelled {
    color: #cd4dcc;
    text-align: right; }
  
  /*  Calendar wrapper */
  .calendar-container {
    position: relative;
    margin: 0 auto;
    height: 100%;
    width: 50%;
    background: #fff;
    font: 13px Helvetica, Arial, san-serif;
    display: inline-block;
    padding: 20px;
    float: left; }
    @media (max-width: 991.98px) {
      .calendar-container {
        padding: 0; } }
    @media (max-width: 767.98px) {
      .calendar-container {
        padding: 0;
        width: 100%; } }
  
  .calendar-container:after {
    clear: both; }
  
  .calendar {
    width: 100%;
    padding: 0; }
  
  /* Calendar Header */
  .year-header {
    background: #fff;
    height: 40px;
    text-align: center;
    position: relative;
    color: #fff;
    border-top-left-radius: 3px;
   }
  
  .year-header span {
    display: inline-block;
    font-size: 20px;
    line-height: 40px;
    color: #000; }
  
  .left-button, .right-button {
    cursor: pointer;
    width: 28px;
    text-align: center;
    position: absolute;
    color: #cccccc !important;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    font-size: 14px !important; }
    @media (prefers-reduced-motion: reduce) {
      .left-button, .right-button {
        -webkit-transition: none;
        -o-transition: none;
        transition: none; } }
    .left-button:hover, .right-button:hover {
      color: #7e0cf5 !important; }
  
  .left-button {
    left: 0; }
  
  .right-button {
    right: 0;
    top: 0; }
  
  /* Buttons */
  .button {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font-size: 1rem;
    border-radius: 25px;
    padding: 0.65rem 1.9rem;
    -webkit-transition: .2s ease all;
    -o-transition: .2s ease all;
    transition: .2s ease all;
    color: white;
    border: none;
    background: #7e0cf5; }
    .button.button-white {
      background: #fff;
      color: #000; }
    .button:focus {
      -webkit-box-shadow: none;
      box-shadow: none;
      outline: none; }
  
  #cancel-button {
    background: #cd4dcc; }
  
  #add-button {
    display: block;
    position: absolute;
    right: 20px;
    bottom: 20px; }
  
  #add-button:hover, #ok-button:hover, #cancel-button:hover {
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    transform: scale(1.03); }
  
  #add-button:active, #ok-button:active, #cancel-button:active {
    -webkit-transform: translateY(3px) scale(0.97);
    -ms-transform: translateY(3px) scale(0.97);
    transform: translateY(3px) scale(0.97); }
  
  /* Days/months tables */
  .days-table, .dates-table, .months-table {
    border-collapse: separate;
    text-align: center; }
  
  .day {
    height: 26px;
    width: 26px;
    padding: 0 10px;
    line-height: 26px;
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 10px;
    color: #000; }
  
  .month {
    cursor: default;
    height: 26px;
    width: 26px;
    padding: 0 2px;
    padding-top: 10px;
    line-height: 26px;
    text-transform: uppercase;
    font-size: 11px;
    color: #cccccc;
    -webkit-transition: all 250ms;
    -o-transition: all 250ms;
    transition: all 250ms; }
    @media (max-width: 991.98px) {
      .month {
        font-size: 8px; } }
    @media (max-width: 767.98px) {
      .month {
        font-size: 10.5px; } }
  
  .active-month {
    font-weight: 700;
    color: #000; }
  
  .month:hover {
    color: #cd4dcc; }
  
  /*  Dates table */
  .table-date {
    cursor: default;
    color: #2b2b2b;
    height: 26px;
    width: 26px;
    font-size: 15px;
    padding: 10px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-transition: all 250ms;
    -o-transition: all 250ms;
    transition: all 250ms;
    position: relative; }
  
  .table-date:not(.nil):hover {
    border-color: white; }
  
  .event-date {
    border-color: #7e0cf5;
    background: #7e0cf5;
    color: #fff; }
    .event-date:after {
      position: absolute;
      top: 0;
      left: 0;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      content: '';
      background: #28a745; }
  
  .active-date {
    background: #cd4dcc;
    color: #fff; }
  
  .event-date.active-date {
    background: #7e0cf5; }
  
  /* input dialog */
  .dialog {
    z-index: 5;
    background: #000;
    position: absolute;
    width: 50%;
    height: 500px;
    top: 0;
    right: 0;
    display: none; }
    @media (max-width: 767.98px) {
      .dialog {
        width: 100%; } }
  
  .dialog-header {
    margin: 20px;
    color: #fff;
    text-align: center;
    font-size: 28px; }
  
  .form-container {
    margin-top: 25%; }
  
  .form-label {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9); }
  
  .input {
    border: none;
    background: none;
    border-bottom: 1px rgba(255, 255, 255, 0.2) solid;
    display: block;
    margin-bottom: 50px;
    width: 300px;
    height: 20px;
    text-align: center;
    -webkit-transition: border-color 250ms;
    -o-transition: border-color 250ms;
    transition: border-color 250ms;
    color: #fff; }
  
  .input:focus {
    outline: none;
    border-color: #fff; }
  
  .error-input {
    border-color: #cd4dcc; }
  
  .calendar-content {
    width: 70%;
    max-height: 500px;
  }
  @media (max-width: 767.98px) {
    .calendar-content {
      width: 100%;
      max-height: 100%;
    } }

  #popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#popup-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    white-space: nowrap;
}

#popup-info {
    margin: 0 auto;
    max-width: 100%;
    overflow-wrap: break-word !important;
    word-wrap: break-word;
    white-space: initial;
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #888;
    cursor: pointer;
}

#popup-close:hover {
    color: #555;
}

.event-card {
    padding: 20px 0;
    max-width: 100%;
    display: block;
    background: #fff;
    border: none !important;
    margin: 20px;
    margin-left: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.event-date {
    cursor: pointer;
}