/* BSM Workshop Filter Styles */

.bsm-workshop-filter-container {
    margin: 20px 0;
    width: 100%;
    font-family: 'Lato', sans-serif;
}

.bsm-workshop-filter-form {
    margin-bottom: 20px;
    width: 100%;
}

.bsm-workshop-filter-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

.bsm-workshop-filter-field {
    flex: 1;
    min-width: 100px;
}

.bsm-workshop-filter-field label,
.bsm-button-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* Esconde os labels quando a classe bsm-hide-labels está presente */
.bsm-hide-labels label {
    display: none;
}

/* Ajusta o alinhamento quando os labels estão ocultos */
.bsm-hide-labels .bsm-workshop-filter-row {
    align-items: center;
}

.bsm-workshop-filter-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    height: 44px;
    font-size: 14px;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="14" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l6 6 6-6" stroke="%23333" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    padding-right: 30px;
}

.bsm-workshop-filter-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.bsm-workshop-filter-button-container {
    flex: 0 0 auto;
    min-width: 160px;
}

.bsm-workshop-filter-button {
    width: 100%;
    background-color: #f8a432;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    height: 44px;
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 0;
}

.bsm-workshop-filter-button:hover:not(:disabled) {
    background-color: #e59424;
}

.bsm-workshop-filter-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
    width: 100%;
    line-height: 0;
}

.bsm-workshop-filter-submit {
    margin-top: 5px;
}

.bsm-workshop-selection {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    width: 100%;
}

.bsm-workshop-selection h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #23282d;
}

/* Style for hierarchy steps */
.bsm-parent-region-form {
    border-bottom: none;
}

.bsm-child-region-form {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 0;
}

.bsm-workshop-goto-form {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.bsm-workshop-filter-no-results,
.bsm-workshop-filter-error {
    padding: 12px 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #ddd;
    margin: 15px 0;
}

.bsm-workshop-filter-error {
    border-left-color: #dc3232;
    background-color: #fdf6f6;
}

/* Responsividade - Abaixo de 768px, itens em coluna */
@media (max-width: 768px) {
    .bsm-workshop-filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .bsm-workshop-filter-field,
    .bsm-workshop-filter-button-container {
        width: 100%;
    }
    
    .bsm-button-label {
        display: none; /* Esconde o label em branco no mobile */
    }
}

/* Loading Indicator */
.bsm-workshop-filter-field select.loading {
    background-image: url('../images/ring-resize.svg'), 
                  linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
    background-position: right 10px center, 0 0;
    background-repeat: no-repeat, repeat;
    background-size: 20px auto, 100%;
}

/* Workshop Count Message */
.bsm-workshop-count {
    display: none;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #3182ce;
    color: #2c5282;
    font-size: 0.9em;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

.bsm-workshop-count.show {
    display: block;
}

.bsm-workshop-count.no-results {
    background-color: #fff5f5;
    border-left-color: #e53e3e;
    color: #c53030;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 