/* Scoped styles for About_Me modal only */
#About_Me .about-textarea-container {
    position: relative;
    margin-bottom: 15px;
}

#About_Me .about-textarea-ai {
    width: 100%;
    min-height: 120px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px 50px 12px 12px; /* Add right padding for AI button */
    transition: all 0.3s ease;
    resize: vertical;
}

    #About_Me .about-textarea-ai:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* AI Button positioned top-right of textarea */
#About_Me .about-ai-btn-container {
    position: absolute;
    top: -40px;
    right: 8px;
    z-index: 10;
}

#About_Me .about-ai-generate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00d4ff 0%, #5b85f7 50%, #ff6b9d 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

    #About_Me .about-ai-generate-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    }

    #About_Me .about-ai-generate-btn:active:not(:disabled) {
        transform: translateY(0);
    }

/* AI Loading Animation for Textarea - Visible Rainbow Border */
#About_Me .about-ai-loading {
    border: 3px solid transparent !important;
    background: linear-gradient(white, white) padding-box, linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #7b68ee, #ff1493, #00ced1, #ff6347, #ff0080) border-box !important;
    background-size: 400% 400% !important;
    animation: aboutAiRainbowBorder 3s linear infinite !important;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5) !important;
}

@keyframes aboutAiRainbowBorder {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(255, 0, 128, 0.6);
    }

    25% {
        background-position: 100% 50%;
        box-shadow: 0 0 20px rgba(64, 224, 208, 0.6);
    }

    50% {
        background-position: 200% 50%;
        box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    }

    75% {
        background-position: 300% 50%;
        box-shadow: 0 0 20px rgba(123, 104, 238, 0.6);
    }

    100% {
        background-position: 400% 50%;
        box-shadow: 0 0 20px rgba(255, 0, 128, 0.6);
    }
}

/* Button States - scoped to About_Me modal */
#About_Me .about-ai-generate-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner Animation - scoped to About_Me modal */
#About_Me .about-ai-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: aboutSpinAnimation 1s linear infinite;
}

@keyframes aboutSpinAnimation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Disabled state for modal buttons */
#About_Me .modal-footer .btn:disabled,
#About_Me .modal-header .btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Tooltip Styles - scoped to About_Me modal */
#About_Me .tooltip-inner {
    max-width: 200px;
    text-align: left;
    font-size: 12px;
}

/* Modal Overlay for Loading - scoped to About_Me modal */
#About_Me ~ .modal-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1055;
    display: none;
    backdrop-filter: blur(2px);
}

    #About_Me ~ .modal-loading-overlay.show {
        display: block;
    }



.flex-column {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
}

.animation__shake {
    -webkit-animation: shake 1500ms;
    animation: shake 1500ms;
}

.non-clickable {
    pointer-events: none;
    cursor: default;
    color: inherit; /* Optional: To ensure it doesn't look like a link */
    text-decoration: none; /* Optional: To remove underline */
}


.nssicon {
    height: 16px; /* Maintain aspect ratio */
    filter: invert(0%) sepia(100%) saturate(0%) hue-rotate(150deg) brightness(150%);
    padding-right: 5px;
}

.m-h200 {
    max-height: 200px;
}

.m-a0 {
    margin: 0;
}



.block-gradient-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.block-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.block-gradient-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #222;
}

.block-gradient-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #222;
}


.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}