/* Dashboard Containers */
.sm-dashboard {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px 0;
}

/* Manager List */
.sm-horse-list {
    list-style: none;
    padding: 0;
}
.sm-horse-list li {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.sm-owner {
    color: #666;
    font-size: 0.9em;
}

/* Toggle Switch */
.sm-horse-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.sm-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin: 0 10px;
}

.sm-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.sm-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.sm-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .sm-slider {
  background-color: #2196F3;
}

input:focus + .sm-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .sm-slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.sm-slider.round {
  border-radius: 34px;
}

.sm-slider.round:before {
  border-radius: 50%;
}

.sm-status-label {
    font-weight: bold;
    min-width: 120px;
    text-align: right;
}

/* Calendar Wrapper */
.sm-calendar-wrapper {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sm-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sm-calendar-header h3 {
    margin: 0;
    font-size: 1.2em;
}

/* Calendar Grid */
.sm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.sm-cal-header {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    background: #f4f4f4;
    border-radius: 4px;
}

.sm-cal-day {
    height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.sm-cal-day:hover {
    background: #f9f9f9;
    border-color: #ddd;
}

.sm-cal-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.sm-day-num {
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
}

.sm-day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}

.sm-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.sm-dot-red { background-color: #e74c3c; }
.sm-dot-blue { background-color: #3498db; }
.sm-dot-gray { background-color: #95a5a6; }

/* Modal */
.sm-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.sm-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.sm-close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.sm-close-modal:hover,
.sm-close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.sm-event-item {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #2196F3;
}

.sm-btn-delete {
    background: #e74c3c;
    border-color: #c0392b;
    color: #fff;
}

.sm-btn-delete:hover {
    background: #c0392b;
    border-color: #a93226;
    color: #fff;
}
