/* Apply Inter font to the entire body */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #111827; /* text-gray-900 */
}
/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}
/* Keyframes for fade-in animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.animate-fade-in-down { animation: fadeInDown 0.8s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-bounce-in { animation: bounceIn 0.8s ease-out forwards; }

/* Keyframes for loading spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-fast {
    animation: spin 0.7s linear infinite;
}

/* Styles for the message box */
.message-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8d7da; /* Light red for errors */
    color: #721c24; /* Dark red text */
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Stronger shadow */
    z-index: 1000;
    display: none; /* Hidden by default */
    font-weight: 600; /* Bolder text */
    border: 1px solid #f5c6cb;
    text-align: center;
}
.message-box.show {
    display: block;
    animation: fadeInDown 0.3s ease-out forwards; /* Smoother animation */
}

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Modal Content */
        .modal-content {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            width: 90%;
            max-width: 500px;
            position: relative;
            transform: translateY(-20px);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
            opacity: 1;
        }

        /* Close button */
        .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
            transition: color 0.2s ease;
        }

        .close-button:hover {
            color: #333;
        }

        .modal-text {
            margin-top: 20px;
            color: #333;
            line-height: 1.6;
        }

        /* Custom styling for the button */
        #minepeak-view-project-button-num1 {
            padding: 12px 24px;
            background: linear-gradient(145deg, #6b46c1, #805ad5); /* Purple gradient */
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        #minepeak-view-project-button-num1:hover {
            background: linear-gradient(145deg, #805ad5, #6b46c1); /* Invert gradient on hover */
            box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
            transform: translateY(-2px);
        }

        #minepeak-view-project-button-num1:active {
            transform: translateY(0);
            box-shadow: 0 2px 10px rgba(107, 70, 193, 0.2);
        }