/* Footer Styles */
.footer-container {
    position: fixed;
    bottom: 0rem;
    left: 0;
    width: 50%;
    left:50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.add-button {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3748ff;
    box-shadow: 0 6px 16px rgba(0, 15, 187, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    bottom: 20px;
    /* Position slightly higher */
}

.add-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 15, 187, 0.5);
}

.add-button svg {
    width: 24px;
    height: 24px;
    fill: var(--nav-text);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated border */
.add-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0015ff;
    animation: pulse 2s infinite;
    box-sizing: border-box;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Navigation menu */
.nav-menu {
    position: absolute;
    bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(20px);
    pointer-events: none;
    flex-direction: row;
    /* Horizontal alignment */
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.nav-item {
    position: relative;
    /* background-color: var(--card-bg); */
    background-color: #ffffff;
    /* color: var(--card-title-color); */
    color: #000000;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-color1);
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    min-width: 160px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(50px);
    opacity: 0;
    white-space: nowrap;
    /* Keep text on one line */
}

.nav-menu.active .nav-item {
    transform: translateY(0);
    opacity: 1;
}

.nav-item:nth-child(1) {
    transition-delay: 0.1s;
    border-bottom: 1.5px solid #5286ff;
}

.nav-item:nth-child(2) {
    transition-delay: 0.2s;
    border-bottom: 1.5px solid #50d70100;
}

.nav-item:nth-child(3) {
    transition-delay: 0.3s;
    border-bottom: 1.5px solid #fe112c;
}

.nav-item span {
    z-index: 1;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* .nav-item:hover {
    transform: translateY(-8px) scale(1.2);
    box-shadow: 0 12px 24px var(--shadow-color1);
    background-color: #ffffff;
} */

.nav-item:active {
    transform: scale(0.95);
}

/* Icons */
.icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--nav-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    /* Ensure icons are always visible */
}

.nav-item:hover .icon {
    transform: rotate(25deg) scale(1.3);
}

.icon.pin {
    background-color: #5286ff;
}

.icon.new {
    background-color: #50d701;
}

.icon.soon {
    background-color: #fe112c;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-item {
        max-width: 180px;
        min-width: 120px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 580px) {
    .nav-menu {
        flex-direction: column;
        /* gap: 0.8rem; */
        width: auto;
    }

    .nav-item {
        width: 200px;
        max-width: 200px;
        min-width: 160px;
        padding: 0.8rem 1rem;
    }

    .add-button {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .nav-item {
        width: 200px;
        max-width: 200px;
        min-width: 140px;
        font-size: 0.85rem;
    }

    .add-button {
        width: 50px;
        height: 50px;
    }
}







/* Alert Box */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.custom-alert-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: popIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-alert-box h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.custom-alert-box p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-alert-box button {
    background: #0015ff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-alert-box button:hover {
    background: #000fbb;
    transform: scale(1.05);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}