/* Add these styles to your CSS file */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    /* Red color for errors */
}

.form-input.error input,
.form-input.error select,
.form-input.error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-input.success input,
.form-input.success select,
.form-input.success textarea {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* For RTL support */
[dir="rtl"] .invalid-feedback {
    text-align: right;
}

.lang-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.lang-link img {
    width: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: none;
}

.lang-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-link.active {
    background-color: #0d6efd20;
    color: #0d6efd;
    font-weight: 600;
    border-radius: 2rem;
}

.flag-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .lang-link span {
        font-size: 0.9rem;
    }
}

/* active language highlight */
/* .lang-link.active img {
} */
.project-description {
    font-size: 1rem;
}

.embed-item {
    padding: 8px;
    background-color: #343434;
    border-radius: 8px;
    max-width: 100%;
    overflow: hidden;
    display: block;
}