/* Header bar for collapsibles */
.udb-collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 0.75em;
    background: #192B37;
    color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

/* Collapsible title + toggle */
.udb-collapsible-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    gap: 0.4em;
}

.udb-title-text {
    font-weight: 600;
}

.udb-toggle-icon {
    font-size: 1.2em;
}

/* Collapsible animation */
.udb-collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
}

/* Repeat block container */
.udb-repeat-list>.udb-repeat-item {
    margin-bottom: 1.5em;
    padding: 0.75em;
    border-radius: 4px;
}

/* Nested group visual indent */
.udb-repeat-group {
    padding-left: 1rem;
    border-left: 2px dotted #ccc;
    margin-bottom: 1em;
}

/* General spacing between fields */
.udb-field-row {
    margin-bottom: 1em;
}

/* Inline row layout (e.g., button + month) */
.udb-inline-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.udb-inline-group {
    display: flex;
    flex: 1;
    gap: 12px;
    flex-wrap: wrap;
}

/* Reusable inline-3 grid for tight field sets */
.udb-field-row.inline-3>div {
    display: inline-block;
    width: 32%;
    margin-right: 1%;
    vertical-align: top;
}

.udb-field-row.inline-3>div:last-child {
    margin-right: 0;
}

/* Buttons */
.button.udb-remove {
    background: #d33;
    border: none;
    color: #fff;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    padding: 10px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button.udb-remove:hover {
    background: #c22;
}

.button.udb-add {
    color: #f7f7f7;
    border-color: #00a4b0;
    background-color: #00a4b0;
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
}

.button.udb-add:focus,
.button.udb-add:focus:not(:focus-visible){
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 164, 176, 0.5);
    color: #f7f7f7;
background-color: #038992 !important;
  border-color: #038992 !important;
}



.button.udb-add:hover {
    background-color: #038992;
    border-color: #038992;
}

/*Inputs*/
input.regular-text {
    border: 1px solid #ccc !important;
}

/* Section coloring */
.udb-repeat-city {
    background-color: #f8f8f8;
}

.udb-repeat-site {
    background-color: #f2f2f2;
}

.udb-repeat-equipo {
    background-color: #ebebeb;
}

.udb-repeat-year {
    background-color: #e4e4e4;
}

/* URL Input Group Styles */
.udb-url-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.udb-protocol-select {
    border: none !important;
    border-radius: 0 !important;
    background: #f8f8f8;
    min-width: 70px;
    width: 70px;
    margin: 0 !important;
    padding: 4px 6px !important;
    border-right: 1px solid #ddd !important;
    font-size: 12px;
}

.udb-url-input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    margin: 0 !important;
    padding: 6px 10px !important;
    min-width: 0;
}

.udb-url-input-group:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.udb-protocol-select:disabled,
.udb-url-input:disabled {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed;
}