/* Prüfungsanmeldung Plugin Styles */

.pruefung-anmeldung-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card Styling */
.pruefung-anmeldung-container .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Formular Spacing */
.pruefung-anmeldung-container .form-label {
    color: #212529;
}

.pruefung-anmeldung-container .form-control,
.pruefung-anmeldung-container .form-select {
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Validierung */
.pruefung-anmeldung-container .was-validated .form-control:invalid,
.pruefung-anmeldung-container .was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.pruefung-anmeldung-container .was-validated .form-control:valid,
.pruefung-anmeldung-container .was-validated .form-select:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Alert Styling */
.pruefung-anmeldung-container .alert {
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* Button Styling */
.pruefung-anmeldung-container .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.pruefung-anmeldung-container .btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.pruefung-anmeldung-container .btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner Animation */
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .pruefung-anmeldung-container {
        margin: 1rem;
    }
    
    .pruefung-anmeldung-container .card-body {
        padding: 1.5rem 1rem;
    }
    
    .pruefung-anmeldung-container .card-header {
        padding: 1rem 1rem;
    }
    
    .pruefung-anmeldung-container .card-header h4 {
        font-size: 1.25rem;
    }
}

/* Accessibility */
.pruefung-anmeldung-container .form-control:focus,
.pruefung-anmeldung-container .form-select:focus,
.pruefung-anmeldung-container .form-check-input:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Loading Overlay */
.pruefung-anmeldung-container .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 0.5rem;
}

/* Smooth Transitions */
.pruefung-anmeldung-container * {
    transition: all 0.15s ease-in-out;
}

.pruefung-anmeldung-container button,
.pruefung-anmeldung-container a {
    transition: all 0.2s ease-in-out;
}
