/**
 * Frontend styles for the Event Repeater Field
 * Prefix: codicts-cmlerf
 */

/* Main container */
.codicts-cmlerf-repeater {
    margin-bottom: 20px;
}

/* Field styling */
.codicts-cmlerf-field {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.codicts-cmlerf-field:hover {
    border-color: #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.codicts-cmlerf-field.codicts-cmlerf-required {
    border-left: 3px solid #3498db;
}

/* Field label */
.codicts-cmlerf-field-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.codicts-cmlerf-field-label label {
    font-weight: 600;
    margin: 0;
    color: #333;
}

.codicts-cmlerf-required-indicator {
    color: #e74c3c;
    margin-left: 5px;
    font-weight: bold;
}

/* Input styling */
.codicts-cmlerf-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.codicts-cmlerf-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Date picker styling */
.codicts-cmlerf-field .event-picker {
    margin-top: 10px;
}

.codicts-cmlerf-field .single-date {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.codicts-cmlerf-field .date-start,
.codicts-cmlerf-field .date-end {
    flex: 1;
}

.codicts-cmlerf-field .datepicker-wrapper {
    position: relative;
}

/* Location field styling */
.codicts-cmlerf-field.event-location-field .codicts-rec-er-select-options {
    margin-bottom: 10px;
}

/* Repeater item styling */
.repeater-field-wrapper {
    background: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.repeater-field-wrapper:hover {
    border-color: #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Add button styling */
.codicts-cmlerf-repeater [data-repeater-create] {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.codicts-cmlerf-repeater [data-repeater-create]:hover {
    background: #2980b9;
}

/* Delete button styling */
.codicts-cmlerf-repeater .delete-repeater-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.codicts-cmlerf-repeater .delete-repeater-item:hover {
    background: #c0392b;
}

/* Responsive styling */
@media (max-width: 768px) {
    .codicts-cmlerf-field .single-date {
        flex-direction: column;
        gap: 10px;
    }
    
    .codicts-cmlerf-field {
        padding: 10px;
    }
}
