body {
    font-family: 'Crimson Text', serif;
    background: url('https://www.transparenttextures.com/patterns/dark-denim-3.png'),
                linear-gradient(45deg, #c94c4c 25%, transparent 25%, transparent 75%, #c94c4c 75%),
                linear-gradient(45deg, #c94c4c 25%, transparent 25%, transparent 75%, #c94c4c 75%);
    background-size: 100px 100px, 40px 40px;
    color: #5a3e2b;
    margin: 0;
    padding: 20px;
    text-align: center;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3em;
    color: #fff0e6;
    background-color: #c94c4c;
    background-size: cover;
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.event-container {
    max-width: 600px;
    margin: 30px auto;
    background: rgba(255, 250, 240, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #9a3926;
}

.content-container {
    max-width: 600px;
    margin: 30px auto;
    background: rgba(255, 250, 240, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #9a3926;
}

.event {
    padding: 15px;
    border-bottom: 2px dashed #9a3926;
}

.event:last-child {
    border-bottom: none;
}

.date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8em;
    color: #9a3926;
}

.details {
    font-size: 1.2em;
    color: #4a2c20;
    font-weight: bold;
}

.event:hover {
    background: #fff0e6;
    transition: 0.3s;
    border-radius: 8px;
}

.no-events {
    font-size: 1.3em;
    color: #fdf3e7;
    background: #9a3926;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
}

.modal {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #f1f1f1;
    border: 2px solid #aaa;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-buttons button {
    margin-right: 10px;
}


.event .details span {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
  }
  
  .event .delete-icon {
    position: absolute;
    left: -24px;
    top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-block; /* ✅ Always visible */
  }

  .event .edit-icon {
    position: absolute;
    right: -24px;
    top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-block; /* ✅ Always visible */
  }
  
  .add-event-button {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 10px;
    cursor: pointer;
    width: 100px;
    height: 100px;
  }

  .add-event-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 500px;
    margin: 20px auto;
  }
  
  .calendar-day, .calendar-label {
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  .calendar-label {
    font-weight: bold;
    background-color: #eee;
  }
  
  .calendar-day.has-event {
    background-color: #ffdf91; /* highlight color */
    cursor: pointer;
  }
  
  .calendar-day:hover {
    background-color: #ffc85b;
  }

  .calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 10px auto;
    flex-wrap: wrap;
  }
  
  .calendar-nav select,
  .calendar-nav button {
    padding: 5px 10px;
    font-size: 1rem;
    border: none;
    background: none;
  }
  
  .selector-contatiner {
    margin: 30px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  }