/* Basic Calendar Wrapper */
.calendar-wrapper {
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  font-family: Arial, sans-serif;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Header */
.calendar-header {
  background: #7fcfc6;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.calendar-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s;
}
.calendar-header button:hover {
  transform: scale(1.1);
}

.calendar-header h2 {
  font-size: 16px;
  margin: 0;
  text-align: center;
  flex: 1;
}

/* Days and Dates Grid */
.calendar-days,
.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-days div {
  padding: 10px 0;
  font-weight: bold;
  background: #fafafa;
  font-size: 13px;
}

.calendar-dates div {
  padding: 16px 0;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.calendar-dates div.disabled {
  color: #ccc;
  background: #fafafa;
  cursor: not-allowed;
}

.calendar-dates div.active:hover {
  background: #7fcfc6;
  color: white;
}

.calendar-dates div.selected {
  background: #111;
  color: #fff;
}

/* Modal */
.cb-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
}

.cb-modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 20px;
  max-width: 320px;
  border-radius: 8px;
  text-align: center;
}

.cb-close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}
/* Qendër dropdown i orarit brenda modal */
.cb-modal-content select#cbTime {
  width: 100%;          /* zgjerohet gjithë modal */
  padding: 10px 12px;   /* hapësirë brenda dropdown */
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  text-align: center;          /* qendër opsionet */
  text-align-last: center;     /* qendër tek opsionet e listës */
  box-sizing: border-box;
  display: block;
  margin: 0 auto;             /* qendër horizontal */
}

/* Modal Button */
#cbSend {
  background: #7fcfc6;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

#cbSend:hover {
  background: #66b5aa;
}

/* Responsive */
@media (max-width: 1024px) { /* Tablet */
  .calendar-wrapper {
    max-width: 360px;
  }

  .calendar-header h2 {
    font-size: 15px;
  }

  .calendar-dates div {
    padding: 14px 0;
    font-size: 14px;
  }
}

@media (max-width: 768px) { /* Mobile */
  .calendar-wrapper {
    max-width: 100%;
  }

  .calendar-header h2 {
    font-size: 14px;
  }

  .calendar-days div {
    font-size: 12px;
    padding: 8px 0;
  }

  .calendar-dates div {
    padding: 12px 0;
    font-size: 13px;
  }

  .cb-modal-content {
    width: 90%;
    margin-top: 30%;
  }
}

@media (max-width: 480px) { /* Small Mobile */
  .calendar-header h2 {
    font-size: 13px;
  }

  .calendar-days div {
    font-size: 11px;
    padding: 6px 0;
  }

  .calendar-dates div {
    padding: 10px 0;
    font-size: 12px;
  }
}
