/* ===================================
   Toast Messages (Floating Bottom)
   =================================== */

.custom-toast {
    min-width: 350px;
    max-width: 450px;
    margin-bottom: 1rem;
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-toast-content {
    padding: 1.25rem;
    position: relative;
}

/* Toast Icon */
.custom-toast-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.custom-toast-icon i {
    font-size: 1.5rem;
}

/* Toast Title */
.custom-toast-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Toast Message */
.custom-toast-message {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--white);
    font-weight: 500;
}

/* Progress Bar Container */
.custom-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
}

/* Success Toast */
.custom-toast.alert-success {
    background: linear-gradient(135deg, var(--bs-success) 0%, var(--bs-teal) 100%)!important;
    border: 2px solid rgba(40, 167, 69, 0.5);
}

.custom-toast.alert-success .custom-toast-icon {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.custom-toast.alert-success .custom-toast-title {
    color: var(--white);
}

.custom-toast.alert-success .custom-toast-message {
    color: var(--white);
}

.custom-toast.alert-success .custom-toast-progress-bar {
    background: rgba(255, 255, 255, 0.8);
}

/* Error/Danger Toast */
.custom-toast.alert-danger,
.custom-toast.alert-error {
    background: linear-gradient(135deg, var(--bs-danger) 0%, var(--bs-dark) 100%)!important;
    border: 2px solid rgba(220, 53, 69, 0.5);
}

.custom-toast.alert-danger .custom-toast-icon,
.custom-toast.alert-error .custom-toast-icon {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.custom-toast.alert-danger .custom-toast-title,
.custom-toast.alert-error .custom-toast-title {
    color: var(--white);
}

.custom-toast.alert-danger .custom-toast-message,
.custom-toast.alert-error .custom-toast-message {
    color: var(--white);
}

.custom-toast.alert-danger .custom-toast-progress-bar,
.custom-toast.alert-error .custom-toast-progress-bar {
    background: rgba(255, 255, 255, 0.8);
}

/* Warning Toast */
.custom-toast.alert-warning {
    background: linear-gradient(135deg, var(--bs-warning) 0%, var(--bs-dark) 100%)!important;
    border: 2px solid rgba(255, 152, 0, 0.5);
}

.custom-toast.alert-warning .custom-toast-icon {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.custom-toast.alert-warning .custom-toast-title {
    color: var(--white);
}

.custom-toast.alert-warning .custom-toast-message {
    color: var(--white);
}

.custom-toast.alert-warning .custom-toast-progress-bar {
    background: rgba(255, 255, 255, 0.8);
}

/* Info Toast */
.custom-toast.alert-info {
    background: linear-gradient(135deg, var(--bs-info) 0%, var(--bs-dark) 100%)!important;
    border: 2px solid rgba(33, 150, 243, 0.5);
}

.custom-toast.alert-info .custom-toast-icon {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.custom-toast.alert-info .custom-toast-title {
    color: var(--white);
}

.custom-toast.alert-info .custom-toast-message {
    color: var(--white);
}

.custom-toast.alert-info .custom-toast-progress-bar {
    background: rgba(255, 255, 255, 0.8);
}

/* Close Button Styling */
.custom-toast .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    background-size: 1rem;
}

.custom-toast .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Toast Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.custom-toast.hiding {
    animation: slideOutDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }
}

/* Progress Bar Animation */
@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Hover Effect */
.custom-toast:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 576px) {
    .custom-toast {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }

    .custom-toast-content {
        padding: 1rem;
    }

    .custom-toast-icon {
        width: 32px;
        height: 32px;
    }

    .custom-toast-icon i {
        font-size: 1.25rem;
    }
}



/* ===================================
   Social Accounts
   =================================== */

.btn-microsoft {
    border-color: #2b5797 !important;
    color: #2b5797 !important;
}

.btn-microsoft:hover {
    color: #fff !important;
    background-color: #2b5797 !important;
    transform: translateY(-3px) !important;
}

.bg-microsoft {
    background-color: #2b5797 !important;
    color: #fff !important;
}

.btn-google {
    border-color: #ea4335 !important;
    color: #ea4335 !important;
}

.btn-google:hover {
    color: #fff !important;
    background-color: #ea4335 !important;
    transform: translateY(-3px) !important;
}

.bg-google {
    background-color: #ea4335 !important;
    color: #fff !important;
}

.btn-facebook {
    border-color: #4267B2 !important;
    color: #4267B2 !important;
}

.btn-facebook:hover {
    color: #fff !important;
    background-color: #4267B2 !important;
    transform: translateY(-3px) !important;
}

.bg-facebook {
    background-color: #4267B2 !important;
    color: #fff !important;
}