/* Form styles for the Gaia-X Credential Helper */

/* Field containers */
.field-container {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.field-container:hover {
    border-color: #6c757d;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.field-container.border-danger {
    border-width: 2px;
    box-shadow: 0 0 10px rgba(220,53,69,0.3);
}

/* Constraints, labels, and badges */
.constraint-badge {
    display: inline-block;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.property-description {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.field-type {
    font-weight: bold;
    color: #0d6efd;
}

.type-info {
    font-size: 0.85rem;
    color: #0d6efd;
    margin-left: 0.5rem;
    display: inline-block;
}

.required-field-label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.cardinality-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Error handling */
.validation-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
}

/* Tooltips */
.tooltip-icon {
    color: #0d6efd;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Multiple values */
.multi-value-container {
    margin-bottom: 0.5rem;
}

.multi-value-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.multi-value-item .form-control {
    flex-grow: 1;
}

.multi-value-item .btn {
    margin-left: 0.5rem;
}

/* Class reference controls */
.class-reference-controls {
    margin-top: 0.5rem;
}

/* For sh:or constraint radio buttons */
.constraint-option {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.constraint-option.active {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

/* Breadcrumb styling for nested forms */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.breadcrumb-context {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.breadcrumb-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #212529;
}

.breadcrumb-item.active {
    font-weight: bold;
}

/* Step indicator */
.step-indicator {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #6c757d;
}

.step::before {
    content: attr(data-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    margin: 0 auto 0.5rem;
    color: #6c757d;
    font-weight: bold;
}

/* Active step styling */
.step.active {
    font-weight: bold;
    color: #0d6efd;
}

.step.active::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Completed step styling */
.step.completed {
    color: #6c757d;
}

.step.completed::before {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    content: "✓";
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .step {
        font-size: 0.8rem;
    }
    
    .step::before {
        width: 28px;
        height: 28px;
    }
}