.badge-secondary {
    background: oklch(0.97 0 0);
    color: oklch(0.400 0.00132 15.307);
    border-radius: 2rem;
    border: 1px solid oklch(0.800 0 0);
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.calendar-group-tag {
  background-color: #e8f5ec;
  border: solid 1px rgb(205, 205, 205);
  border-left: 3px solid #4A9D5F;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1a3d25;
  cursor: pointer;
}

.calendar-group-tag.deactive {
  background: oklch(0.88 0 0);
  color: #374151;
}

button {
    border-radius: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(27, 31, 35, 0.15);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    box-shadow: rgba(27, 31, 35, 0.1) 0 1px 0;
    background: oklch(57.81% 0.1776 147.5);
    color: white;
    cursor: pointer;
}

button.delete {
  padding: 5px;
  margin-top: 5px;
  background-color: oklch(62.72% 0.24513 28.19 / 0.955);
  width: 36px;
  height: 36px;
}

button.edit {
  padding: 5px;
  margin-top: 5px;
  background-color: oklch(57.81% 0.1776 147.5);
  width: 36px;
  height: 36px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-box {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

    max-width: 720px;
    min-width: 320px;
    width: 60%;
    max-height: calc(100vh - 120px);
    padding: 15px 20px 20px 20px;
    overflow-y: auto;
}

.hide-scrollbar {
  overflow-y: scroll; /* Or auto */
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

.form-modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  margin: 10px 20px;
  gap: 15px;
  width: 80%;
  max-width: 600px;
}

.form-modal input[type="text"],
.form-modal textarea,
.form-modal input[type="date"],
.form-modal input[type="time"],
.form-modal input[type="submit"],
.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="submit"],
.login-card input[type="text"]
 {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-modal input[type="submit"]:hover,
.login-card input[type="submit"]:hover
{
  background-color: oklch(66.979% 0.16322 150.152);
  transition: background-color 0.5s ease;
}

.login-card input:hover
{
  border-color: oklch(66.979% 0.16322 150.152);
  transition: border-color 0.5s ease;
}

input[type="search"],
select
 {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-modal textarea {
  resize: vertical;
}

.modal-box-event {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 90%;
    overflow: hidden;
}

.event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.event-modal-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.event-close-btn {
    font-size: 1.3rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.event-close-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.event-modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px 12px 20px;
    gap: 12px;
}

.event-modal-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-icon {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    fill: #6b7280;
}

.btn-icon:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-icon-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.btn-icon-danger:hover svg {
    fill: #ef4444;
}

.event-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 20px 20px 20px;
}

.event-info-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.event-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    min-width: 44px;
    flex-shrink: 0;
}

.event-description-box {
    margin-top: 4px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.event-description-box #event-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.event-header {
  margin: 0 0 4px 0;
}

.left-border {
  border-left: 3px solid oklch(57.81% 0.1776 147.5);
  padding: 0 0 0 10px;
  border-radius: 0.25rem;
}

.participants-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    
    min-height: 80px;
    padding: 10px;
    gap: 10px;

    width: 100%;
    box-sizing: border-box;

}

.user-pill {
  display: flex;
  align-items: center;

  padding: 10px 20px;
  gap: 8px;

  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;
}

.user-pill:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.user-pill.selected {
  background: oklch(57.81% 0.1776 147.5);
  color: white;
  border-color: oklch(57.81% 0.1776 147.5);
  box-shadow: 0 2px 4px rgba(74, 157, 95, 0.3);
}

.user-pill.selected:hover {
    background: oklch(52% 0.16 147.5);
    border-color: oklch(52% 0.16 147.5);
}

@media(max-width: 800px ) {

  .modal-box-event {
    width: 100%;
  }

  .modal-box {
    width: 100%;
  }
}