@media (min-width: 768px) {
    .nav-logo img {
        max-width: 270px !important;
    }
}
  
.was-validated :invalid ~ .invalid-feedback {
    display: block;
}
.was-validated :valid ~ .valid-feedback {
    display: block;
}

.valid-feedback {
    width: 100%;
    font-size: 0.875em;
    color: #198754;
}

.invalid-feedback {
    width: 100%;
    font-size: 0.875em;
    color: #dc3545;
}

/* Alert */

.alert-container {
    position: fixed;
    top: 120px;
    right: 30px;
    z-index: 99999;
}

.custom-alert {
    display: flex;
    gap: 10px;
    min-width: 320px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    position: relative;
    animation: slideFadeIn 0.6s ease forwards;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

.custom-alert:is(.dark *) {
    background: rgba(40, 40, 40, 0.7);
    color: #eee;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-alert-success {
    border-left: 5px solid #4CAF50;
}

.custom-alert-success:is(.dark *) {
    border-left: 5px solid #81C784;
}

.custom-alert-error {
    border-left: 5px solid #F44336;
}

.custom-alert-error:is(.dark *) {
    border-left: 5px solid #E57373;
}

.custom-alert-icon {
    font-size: 20px;
}

.custom-alert-success .custom-alert-icon i {
    color: #4CAF50;
}

.custom-alert-success .custom-alert-icon i:is(.dark *) {
    color: #81C784;
}

.custom-alert-error .custom-alert-icon i {
    color: #F44336;
}

.custom-alert-error .custom-alert-icon i:is(.dark *) {
    color: #E57373;
}

.custom-alert-close i {
    color: #9dafcd;
}

.custom-alert-close i:is(.dark *) {
    color: #eee;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

input,
textarea {
    --tw-text-opacity: 1;
    color: rgb(24 24 27 / var(--tw-text-opacity)) !important;
}

input:is(.dark *),
textarea:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
    background-color: transparent !important;
    --tw-bg-opacity: 1;
    -webkit-box-shadow: 0 0 0 1000px rgb(255 255 255 / var(--tw-bg-opacity)) inset !important;
}

input:-webkit-autofill:is(.dark *),
textarea:-webkit-autofill:is(.dark *) {
    background-color: transparent !important;
    --tw-bg-opacity: 1;
    -webkit-box-shadow: 0 0 0 1000px rgb(33 34 32 / var(--tw-bg-opacity)) inset !important;
    --tw-text-opacity: 1;
    -webkit-text-fill-color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
}

header.nav-sticky.bg-transparent {
    background-color: rgba(255, 255, 255, 0.75);
}

*:is(.dark *) header.nav-sticky.bg-transparent {
    background-color: rgba(0, 0, 0, 0.25);
}
