/* Footer Base Styles */
footer {
    position: relative;
    background: #212529 !important;
    padding-top: 2rem;
    overflow: hidden;
}

/* Gradient Top Border */
/* Gradient Top Border - Optimized for performance */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* Wider to allow sliding */
    height: 3px;
    background: linear-gradient(90deg, #007bff, #6610f2, #e83e8c, #007bff, #6610f2, #e83e8c);
    animation: gradientShift 8s linear infinite;
    will-change: transform;
}

@keyframes gradientShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer Links */
.footer-link {
    color: #adb5bd !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #007bff;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

/* Social Media Links */
.social-link {
    color: #adb5bd !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* Footer Text */
.footer-text {
    color: #adb5bd !important;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Footer Contact Items */
.footer-contact li {
    transition: transform 0.3s ease;
}

.footer-contact li:hover {
    transform: translateX(5px);
}

/* Footer Headings */
footer h5 {
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #6610f2);
    transition: width 0.3s ease;
}

footer h5:hover::after {
    width: 100%;
}

/* Footer Links Container */
.footer-links {
    padding-left: 0;
}

.footer-links li {
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    footer {
        padding-top: 1.5rem;
    }
    
    footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    footer {
        padding-top: 1rem;
    }
    
    footer .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .social-link {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    footer {
        padding-top: 0.75rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
}

/* Footer Animation on Scroll */
footer {
    opacity: 0;
    transform: translateY(50px);
    animation: footerFadeIn 0.8s ease forwards;
}

@keyframes footerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copyright Section */
footer hr {
    border-color: rgba(173, 181, 189, 0.2);
    opacity: 0.5;
}

/* Enhanced Hover States */
footer .row > div {
    transition: transform 0.3s ease;
}

footer .row > div:hover {
    transform: translateY(-2px);
}

/* Toast Container */
.am-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .am-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Individual Toast */
.am-toast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    cursor: pointer;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.am-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.am-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.am-toast-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.am-toast-content {
    flex: 1;
    min-width: 0;
}

.am-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.am-toast-message {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.am-toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.am-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.am-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 12px 12px;
    animation: toastProgress 8s linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Toast types */
.am-toast.credit,
.am-toast.depleted,
.am-toast.low {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.am-toast.message {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.am-toast.payment {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Notification Bell Animation */
.am-notification-bell {
    animation: bellRing 0.5s ease-in-out;
}

@keyframes bellRing {

    0%,
    100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-15deg);
    }

    60% {
        transform: rotate(10deg);
    }

    80% {
        transform: rotate(-10deg);
    }
}