/* ===== Mobile-first foundations ===== */
/* Universal box-sizing prevents `padding+border` overflow on narrow viewports.
   Was missing from all 3 CSS files; root cause of horizontal scroll bugs on phones. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.blue-link {
    fill: #3b82f6;
    cursor: pointer;
    text-decoration: none; /* Remove this line to remove underline */
    transition: all 0.3s ease;
}

.blue-link:hover {
    fill: #2563eb;
    opacity: 0.8;
}

.date-label.blue-link {
    fill: #3b82f6;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    padding: 2px 6px;
    transition: all 0.3s ease;
}

.date-label.blue-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}



@media (max-width: 640px) {
    html, body {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    body {
        min-height: 100vh;
        background-attachment: fixed;
    }

    .gradient-bg {
        background-attachment: fixed;
        min-height: 100vh;
    	transform: translateZ(0);
        will-change: background-position;
    }

    .stocks-container {
        max-height: calc(100vh - 500px);
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }
}


body {
  margin: 0;
  padding: 0;
  /* Respect iOS notch / Dynamic Island / home-indicator on Safari & PWA standalone.
     Keeps existing horizontal p-4 utility intact while reserving safe-area on top/sides/bottom. */
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

/* When body has Tailwind p-4 (1rem) we additively merge it with safe-area on each side */
body.gradient-bg {
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-right: calc(1rem + env(safe-area-inset-right));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  padding-left: calc(1rem + env(safe-area-inset-left));
}

/* Any fixed/sticky bottom sheet or footer should clear the home indicator */
.bottom-sheet,
.fixed-bottom,
[data-fixed-bottom] {
  padding-bottom: env(safe-area-inset-bottom);
}



/* Apply universally to the entire web app */
* {
  /* Disable text selection */
  user-select: none;               /* Standard browsers */
  -webkit-user-select: none;       /* Safari */
  -ms-user-select: none;           /* Internet Explorer/Edge */
  
  /* Disable drag & drop, selection and similar behaviors */
  -webkit-touch-callout: none;     /* Prevent callout menu on touch devices (iOS) */
  -webkit-user-drag: none;         /* Disable image drag */
  -moz-user-select: none;          /* Firefox */
  -ms-user-select: none;           /* Older browsers */
  
  /* Disable text cursor */
  cursor: default;                 /* Disable text selection cursor */
  
  /* Prevent highlighting of text */
  -webkit-tap-highlight-color: transparent; /* Disable tap highlight on mobile browsers (e.g., iOS) */
}

/* Optional: To target specific elements, for example, disabling selection in only divs */
div, p, span {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

html {
    touch-action: manipulation;
    touch-zooming: none;
    zoom: 1;
    -ms-touch-action: manipulation;
    -ms-touch-zooming: none;
}


    @keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-bg {
    background: linear-gradient(-45deg, #0f1633, #145e5d, #12202d, #0a0f1a);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
    min-height: 100vh; /* Ensure gradient covers full viewport */
    background-attachment: fixed;
    transform: translateZ(0);
    will-change: background-position;
}
                                
.gradient-bg-fast {
    background: linear-gradient(-90deg,
        #FF00FF, /* magenta */
        #00FFFF, /* cyan */
        #FF3CAC, /* pink */
        #00F260, /* neon green */
        #0575E6  /* bright blue */
    );
    background-size: 400% 400%;
    animation: gradient 0.5s ease infinite;
}


                                
.glass-effect2 {
    background: rgba(28, 28, 28, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.status-indicator {
    animation: pulse 2s infinite;
}

.typing-indicator::after {
    content: '...';
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

.result-item {
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(10px);
}

.analysis-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 95%;
    max-height: 95vh;
    cursor: default;
}

/* News header styles */
.news-header {
    font-family: 'Times New Roman', Times, serif;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.news-date {
    font-size: 14px;
    color: #a0aec0;
    font-style: italic;
}

.location {
    font-weight: bold;
}

/* Investment decision styles */
.investment-decision {
    margin: -8px -24px 20px -24px;
    padding: 15px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

.invest-yes {
    background-color: rgba(34, 197, 94, 0.9);  /* Current green color */
    color: white;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.invest-no {
    background-color: rgba(239, 68, 68, 0.9);  /* Current red color */
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}
                                
.invest-neutral {
    background-color: rgba(245, 158, 11, 0.9);  /* Amber/Yellow color */
    color: white;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.elapsed-time {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.status-message {
    background: rgba(0, 0, 0, 0.7);
    border-left: 4px solid #4CAF50;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

#analysisContainer {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
}

#searchResults {
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: rgba(155, 155, 155, 0.5) transparent;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
}

#searchResults::-webkit-scrollbar {
    width: 6px;
}

#searchResults::-webkit-scrollbar-track {
    background: transparent;
}

#searchResults::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 20px;
}

.status-steps {
    position: relative;
}

.status-step {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.status-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translateY(-50%);
}

.status-step.active {
    opacity: 1;
}

.status-step.active::before {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.status-step.completed::before {
    background: #2196F3;
}

#recentStocksList {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

#jsonModal .modal-content {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

#jsonContent {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    word-wrap: break-word;
    color: #e2e8f0;  /* Lightened text color for better readability */
    font-size: 1rem; /* Slightly larger font */
    line-height: 1.6;
    background: rgba(17, 24, 39, 0.8); /* Slightly transparent dark background */
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    max-height: calc(80vh - 100px); /* Account for header and padding */
    overflow-y: auto;
}

#jsonModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: none;
    align-items: flex-start;  /* Changed from center to flex-start */
    justify-content: center;
    overflow-y: auto;
    padding: 0;  /* Remove padding to prevent double scrollbars */
}

#jsonModal.show {
    display: flex;
}

#jsonModalTitle {
    color: #e2e8f0;
    font-size: 1.5rem; /* Larger title */
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

/* Close button styling */
#jsonModal .modal-content button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    color: #94a3b8;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

#jsonModal .modal-content button:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #e2e8f0;
}

/* Scrollbar styling */
#jsonContent::-webkit-scrollbar {
    width: 8px;
}

#jsonContent::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#jsonContent::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

#jsonContent::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    #jsonModal .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
    }
    
    #jsonContent {
        font-size: 0.875rem;
        padding: 1rem;
    }
    
    #jsonModalTitle {
        font-size: 1.25rem;
    }
}



#recentStocksList .result-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

#recentStocksList {
    max-height: calc(100vh - 550px); /* Adapt to viewport height minus header and other elements */
   
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    padding-right: 6px;
                                  -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on iOS */
    overscroll-behavior: contain; /* Controls bounce-back effect */
    overflow-y: auto;
    max-height: 150px; /* Keep your existing height */
    padding-right: 6px; /* Keep your existing padding */
    scroll-behavior: smooth; /* Enables smooth scrolling */
    position: relative;
    /* Add these new properties */
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
}

#recentStocksList::-webkit-scrollbar {
    width: 6px;
}

#recentStocksList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#recentStocksList::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
}

#recentStocksList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(59, 130, 246, 0.5);
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .container {
        padding: 0.0rem !important;
    }
    
    .glass-effect {
        padding: 1rem !important;
    }
    
    h1.text-4xl {
        font-size: 1.75rem !important;
        line-height: 2rem !important;
    }
    
    #searchInput {
        font-size: 1rem !important;
        padding: 0.75rem 2.5rem !important;
    }
    
    .investment-decision {
        font-size: 1.25rem !important;
        margin: -4px -12px 12px -12px !important;
        padding: 10px !important;
    }
    
    #analysisContainer {
        padding: 1rem !important;
        font-size: 0.875rem !important;
    }
    
    #recentStocksList {
        grid-template-columns: 1fr !important;
        max-height: calc(100vh - 550px); /* Adjusted for mobile header sizes */
        padding-right: 4px;
    }
    
    .modal-content {
        width: 95% !important;
        max-height: 95vh !important;
        margin: 0rem auto !important;
        padding: 1rem !important;
    }
    
    #jsonContent {
        font-size: 0.75rem !important;
        padding: 0.75rem !important;
    }
    
    .status-message {
        font-size: 0.875rem !important;
        padding: 0.75rem !important;
    }
    
    .elapsed-time {
        font-size: 0.75rem !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    .result-item {
        padding: 0.75rem !important;
        min-height: 3rem !important;
    }
    
    #jsonModal {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .status-step {
        padding-left: 25px !important;
        margin-bottom: 10px !important;
    }
    
    .status-step::before {
        width: 16px !important;
        height: 16px !important;
    }
    
    #recentStocksContainer {
        padding: 1rem !important;
    }
    
    #recentStocksList .result-item {
        padding: 0.75rem !important;
    }
    
    #jsonModalTitle {
        font-size: 1rem !important;
    }
    
    .modal-content button {
        padding: 0.75rem !important;
        font-size: 1.75rem !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 641px) and (max-width: 1024px) {
    #recentStocksList {
        grid-template-columns: repeat(2, 1fr) !important;

    }
    
    .glass-effect {
        padding: 1.5rem !important;
    
    }
    
    .investment-decision {
        font-size: 1.5rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .result-item:hover {
        transform: none !important;
    }
    
    .result-item:active {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    #recentStocksList .result-item:active {
        border-color: rgba(59, 130, 246, 0.4) !important;
    }
}

/* Disclaimer Modal Styles */
#disclaimerModal .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 1rem;
    z-index: 1000;
    animation: modalFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
}

/* Additional responsive adjustments */
@media (max-width: 640px) {
    #disclaimerModal .modal-content {
        width: 95%;
        margin: 10px;
        border-radius: 16px; /* Slightly smaller radius on mobile */
        max-height: 90vh;
  margin-left: 16px;
    margin-right: 16px;
    }
}
/* Disclaimer Modal Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%); /* Adjust starting position */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%); /* Center position */
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%); /* Start from center */
    }
    to {
        opacity: 0;
        transform: translate(-50%, -45%); /* Move slightly up while fading */
    }
}

@keyframes boxShadowPulse {
    0% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 0 0 rgba(59, 130, 246, 0.4);
    }
}

@keyframes warningIconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;      /* Full viewport width */
    height: 100vh;     /* Full viewport height */
    min-height: 100vh; /* Ensure minimum height */
    margin: 0;         /* Remove any margins */
    padding: 0;        /* Remove any padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 25, 40, 0.85);  /* Darker background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;     /* Ensure it's on top */

}

.disclaimer-modal .modal-content {
    position: fixed;
    top: 45% !important; /* Adjust this value - lower percentage moves it up */
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the modal perfectly */
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
    margin-left: 16px;
    margin-right: 16px;


}

.disclaimer-modal.closing {
    backdrop-filter: blur(0);
}

.disclaimer-modal.closing .modal-content {
    animation: modalFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
}

.disclaimer-box {
    animation: boxShadowPulse 2s infinite;
}

.warning-icon svg {
    animation: warningIconPulse 2s infinite;
}

.disclaimer-text {
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 0.5s ease 0.3s forwards;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disclaimer-button {
    transform: translateY(20px);
    opacity: 0;
    animation: buttonSlideUp 0.5s ease 0.6s forwards;
}

@keyframes buttonSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .disclaimer-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
}             
                                
                                
/* Skeleton Loading Animation */
/* Remove the old skeleton styles and replace with these */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.03) 25%, 
        rgba(255, 255, 255, 0.08) 37%, 
        rgba(255, 255, 255, 0.03) 63%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

.skeleton-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.skeleton-text {
    height: 20px;
    margin-bottom: 12px;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-text-medium {
    width: 80%;
}

.skeleton-text-long {
    width: 100%;
}

skeleton-decision {
    height: 60px;
    margin: -1rem -1.5rem 2rem -1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.03),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Skeleton Container */
#skeletonLoader {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
}

/* Enhanced Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Base Skeleton Style */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Glossy Effect for Skeleton Items */
.skeleton::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: reflectionSweep 3s linear infinite;
}

/* Chart Image Skeleton */
.skeleton-image {
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* 2:1 aspect ratio */
    margin-bottom: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Investment Decision Skeleton */
.skeleton-decision {
    height: 60px;
    margin: -1rem -1.5rem 2rem -1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.03),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Text Skeleton Lines */
.skeleton-text {
    height: 18px;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.skeleton-text-section {
    margin-bottom: 2rem;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-text-medium {
    width: 80%;
}

.skeleton-text-long {
    width: 100%;
}

/* Section Headers */
.skeleton-header {
    height: 24px;
    width: 40%;
    margin-bottom: 1.5rem;
}

/* Analysis Sections */
.skeleton-analysis-section {
    margin-bottom: 2.5rem;
}

.skeleton-analysis-section:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    #skeletonLoader {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .skeleton-image {
        padding-bottom: 60%; /* Taller aspect ratio for mobile */
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .skeleton-decision {
        height: 50px;
        margin: -0.75rem -1rem 1.5rem -1rem;
    }

    .skeleton-text {
        height: 16px;
        margin-bottom: 0.75rem;
    }

    .skeleton-header {
        height: 20px;
        margin-bottom: 1rem;
    }
}

/* Loading Container Animation */
@keyframes pulseContainer {
    0% {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    }
    50% {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
    }
    100% {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    }
}

#skeletonLoader {
    animation: pulseContainer 2s infinite ease-in-out;
}

                                
.pointer-events-none {
    pointer-events: none;
}

#recentStocksContainer.opacity-50 {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#recentStocksContainer.opacity-50::after {
   
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4B5563;
    font-size: 1.125rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}                            

         
                                
                                
/* Enhanced Glossy Modal Background Effect */
.modal, .disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 25, 40, 0.65);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    transition: all 0.3s ease;
    z-index: 2000;
}

/* Enhanced Glossy Glass Effect for Modal Content */
.modal-content, .disclaimer-box {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 80px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02),
        0 0 20px rgba(0, 0, 0, 0.1);
    
    overflow: hidden;
}

/* Glossy Reflection Effect */
.modal-content::before, .disclaimer-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 30%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 70%,
        transparent 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
    animation: reflectionSweep 8s linear infinite;
}

/* Chromatic Aberration Border Effect */
.modal-content::after, .disclaimer-box::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 24px;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.5),
        rgba(147, 51, 234, 0.5),
        rgba(236, 72, 153, 0.5),
        rgba(59, 130, 246, 0.5)
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: borderGlow 4s linear infinite;
}

/* Enhanced Animation for Reflection */
@keyframes reflectionSweep {
    0% {
        transform: rotate(30deg) translateY(0%);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    20% {
        opacity: 0;
    }
    100% {
        transform: rotate(30deg) translateY(50%);
        opacity: 0;
    }
}

/* Border Glow Animation */
@keyframes borderGlow {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        filter: hue-rotate(180deg) brightness(1.2);
    }
    100% {
        filter: hue-rotate(360deg) brightness(1);
    }
}

/* Enhanced Modal Opening Animation */
@keyframes modalOpen {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(20px);
        transform: scale(1);
    }
}

/* Enhanced Modal Closing Animation */
@keyframes modalClose {
    0% {
        opacity: 1;
        backdrop-filter: blur(20px);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0px);
        transform: scale(0.95);
    }
}

/* Apply Enhanced Animations */
.modal.show, .disclaimer-modal.show {
    animation: modalOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal.closing, .disclaimer-modal.closing {
    animation: modalClose 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Content Inner Glow */
.modal-content > *, .disclaimer-box > * {
    position: relative;
    z-index: 1;
}

/* Add depth to modal content */
#jsonContent, .disclaimer-text {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(255, 255, 255, 0.05);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .modal-content, .disclaimer-box {
        margin: 10px;
        width: calc(100% - 20px);
        border-radius: 16px;
    }
    
    .modal-content::after, .disclaimer-box::after {
        border-radius: 16px;
    }
}

/* Performance Optimizations */
.modal, .disclaimer-modal {
    will-change: backdrop-filter, transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}
        
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}
            
  /* Enhanced Splashscreen Styles with Cyberpunk Feng Shui Theme */
:root {
    --neon-gold: #ffd700;
    --neon-red: #ff3333;
    --jade-green: #00fa9a;
    --dragon-blue: #00ffff;
    --dark-bg: #0a0a14;
    --lucky-red: #ff1a1a;
    --money-green: #00ff9d;
    --yin-yang-white: rgba(255, 255, 255, 0.95);
    --yin-yang-black: rgba(0, 0, 0, 0.95);
    --grid-color: rgba(255, 215, 0, 0.15);
    
    --text-shadow-gold: 0 0 10px var(--neon-gold), 
                       0 0 20px rgba(255, 215, 0, 0.5),
                       0 0 40px rgba(255, 215, 0, 0.2);
    --text-shadow-jade: 0 0 10px var(--jade-green),
                       0 0 20px rgba(0, 250, 154, 0.5),
                       0 0 40px rgba(0, 250, 154, 0.2);
  --radar-primary: rgba(0, 255, 255, 0.2);
    --radar-secondary: rgba(255, 0, 255, 0.15);
    --radar-scan: rgba(0, 255, 255, 0.4);
}
    
    /* Multiple radar layers for cyberpunk effect */
.splashscreen-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: var(--radar-scan);
    border-radius: 50%;
    transform-origin: center;
    animation: radarScan 4s linear infinite;
    z-index: -1;
    opacity: 0.7;
    box-shadow: 
        0 0 20px var(--radar-primary),
        0 0 40px var(--radar-secondary),
        0 0 60px var(--radar-primary);
}

/* Add additional scan lines */
.splashscreen-overlay .scan-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--radar-primary),
        var(--radar-secondary),
        var(--radar-primary),
        transparent
    );
    animation: scanRotate 4s linear infinite;
    transform-origin: left;
}

.splashscreen-overlay .scan-line:nth-child(2) {
    animation-delay: -1s;
    opacity: 0.5;
}

.splashscreen-overlay .scan-line:nth-child(3) {
    animation-delay: -2s;
    opacity: 0.3;
}

@keyframes radarScan {
    0% {
        box-shadow: 0 0 0 0 var(--radar-primary);
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    50% {
        box-shadow: 
            0 0 300px 300px var(--radar-primary),
            0 0 600px 600px var(--radar-secondary);
        transform: translate(-50%, -50%) rotate(180deg) scale(50);
        opacity: 0.8;
    }
    100% {
        box-shadow: 
            0 0 600px 600px transparent,
            0 0 1200px 1200px transparent;
        transform: translate(-50%, -50%) rotate(360deg) scale(100);
        opacity: 0;
    }
}

@keyframes scanRotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
    
    

.splashscreen-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center,
        var(--dark-bg) 0%,
        rgba(10, 10, 20, 0.98) 88%,
        rgba(255, 26, 26, 0.1) 100%
    );
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--yin-yang-white);
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    padding-top: 26vh;
    overflow: hidden;
}

.splashscreen-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></svg>'),
        linear-gradient(45deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(-45deg, var(--grid-color) 1px, transparent 1px);
    background-size: 300px 300px, 50px 50px, 50px 50px;
    background-position: center;
    opacity: 0.8;
    z-index: -1;
    animation: rotateBackground 30s linear infinite;
}

.splashscreen-logo {
    width: 150px;
    height: 150px;
  //  background: url('images/ai_stock_trader_gulu.webp') no-repeat center/cover;
    border-radius: 50%;
    margin-bottom: 0px;
    border: 4px solid var(--neon-gold);
    box-shadow: 0 0 15px var(--neon-gold),
                0 0 30px rgba(255, 215, 0, 0.5);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    transform: translateY(-60px);
}

.splashscreen-logo::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--neon-gold) 90deg,
        transparent 180deg
    );
    animation: rotateConic 3s linear infinite;
    opacity: 0.5;
}

.splashscreen-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    border-radius: 15px;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-left: 16px;
    margin-right: 16px;
    }
    

    
    

.splashscreen-text::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 50%,
            var(--grid-color) 1px,
            transparent 1px
        );
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

.chinese-text {
    

    color: var(--neon-gold);
    font-size: clamp(1.5rem, 3vw, 2.0rem);
    font-weight: 700;
    background: linear-gradient(
        120deg,
        var(--neon-gold) 0%,
        var(--lucky-red) 50%,
        var(--money-green) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--text-shadow-gold);
    letter-spacing: 6px;
    position: relative;
margin-top: 5px;
}

.english-text {
    color: var(--jade-green);
    font-size: clamp(1.0rem, 1.5vw, 1.0rem);
    font-weight: 400;
    letter-spacing: 3px;
    opacity: 0.9;
    margin-top: 5px;
    text-transform: uppercase;
    text-shadow: var(--text-shadow-jade);
}

.splashscreen-powered-by {
    position: absolute;
    bottom: 30px;
    font-size: 0.7rem;
    color: var(--yin-yang-white);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* New Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(-80px) scale(1); }
    50% { transform: translateY(-90px) scale(1.05); }
}

@keyframes rotateConic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateBackground {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Enhanced Media Queries */
@media (max-width: 768px) {
    .splashscreen-logo {
        width: 120px;
        height: 120px;
    }
    
    .chinese-text {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }
    
    .english-text {
        font-size: clamp(0.7rem, 2.2vw, 1.0rem);
    }
}
    
/* GULU Profile Image Part */
.glow-effect {
    transition: box-shadow 0.3s ease-in-out;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(59, 130, 246, 0.3),
            0 0 20px rgba(59, 130, 246, 0.2),
            0 0 30px rgba(59, 130, 246, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.5),
            0 0 40px rgba(59, 130, 246, 0.3),
            0 0 60px rgba(59, 130, 246, 0.2);
    }
}
    
.conversation-cloud {
    position: absolute;
    top: -100px;  /* Adjust based on profile image position */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    max-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.conversation-cloud.visible {
    opacity: 1;
    top: -120px;
    pointer-events: auto;
}

.conversation-cloud::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
}

.conversation-cloud-text {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}
    
    
    @keyframes synchronizedFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
    50% { 
        transform: translateY(0) rotate(0deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(2deg); 
    }
}

#profileImage, #chatIcon {
    animation: synchronizedFloat 3s ease-in-out infinite;
    transform-origin: bottom center;
}
    



    /* Chat Icon positioning */
.chat-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    /* Change from width: 30px to min-width */
    min-width: 30px;
    /* Add padding for text */
    padding: 5px 10px;
    height: 30px;
    background-color: #4CAF50;
    border-radius: 15px; /* Changed from 50% to fixed value */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
    /* Add these properties for smooth width transition */
    white-space: nowrap;
    overflow: hidden;

    transition: all 0.3s ease;
    transform-origin: bottom center;


}

/* Add a specific style for when analyzing */
@keyframes analyze-struggle {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-2px) rotate(-2deg); }
    20% { transform: translateX(2px) rotate(2deg); }
    30% { transform: translateX(-3px) rotate(-3deg); }
    40% { transform: translateX(3px) rotate(3deg); }
    50% { transform: translateX(-1px) rotate(-1deg); }
    60% { transform: translateX(1px) rotate(1deg); }
}

.chat-icon.analyzing {
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Horizontally centers the content */
    align-items: center; /* Vertically centers the content */
    animation: analyze-struggle 0.2s infinite, synchronized-float 3s ease-in-out infinite;
    background-color: #D70F64; /* Color during analyzing */
    min-width: 120px; /* Wider to accommodate "Analyzing..." text */
    height: 26px;
    color: white; /* Ensures the text is visible on the background */
    font-size: 14px; /* Adjust font size if needed */
    text-align: center; /* Fallback text alignment */
  
}

.chat-icon.analyzing span {
    color: white;
    font-weight: bold;
}

/* Style for the text inside chat icon */
.chat-icon span {
    font-size: 13px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}
    
    @keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.chat-icon:hover {
    transform: scale(1.1);
    background-color: #45a049;
}

.chat-icon svg {
    width: 18px;
    height: 18px;
    color: white;
    fill: white;  /* This will fill the icon with white */
    stroke: none; /* Remove the outline stroke */
}






    
  

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.3);
}
                                
        #skeletonStatus {
    position: absolute;
    inset: 20px 0 auto 0;  /* Changed from inset: 0 to push to top */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center */
    z-index: 10;
}

#skeletonStatus .flex {
    margin-top: 19%; /* Add some spacing from the top */
    font-size: medium;
    color: rgba(0, 0, 0, 1); /* text-gray-400 equivalent */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  /* Add this line */

}

#skeletonElapsedTime {
    color: rgba(111, 111, 111, 1); /* text-gray-400 equivalent */
    margin-top: -8px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  /* Add this line */

}
    

    
 @keyframes analyzeStruggle {
    0%, 100% { 
        transform: translateX(0) rotate(0deg); 
    }
    10% { 
        transform: translateX(-2px) rotate(-2deg); 
    }
    20% { 
        transform: translateX(2px) rotate(2deg); 
    }
    30% { 
        transform: translateX(-3px) rotate(-3deg); 
    }
    40% { 
        transform: translateX(3px) rotate(3deg); 
    }
    50% { 
        transform: translateX(-1px) rotate(-1deg); 
    }
    60% { 
        transform: translateX(1px) rotate(1deg); 
    }
}

@keyframes synchronizedFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
    50% { 
        transform: translateY(0) rotate(0deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(2deg); 
    }
}


    
#whatsappVerificationProfileImage, #whatsappChatIcon {
    animation: synchronizedFloat 3s ease-in-out infinite;
    transform-origin: bottom center;
}

#profileImage.analyzing, #chatIcon.analyzing {
    animation: 
        synchronizedFloat 3s ease-in-out infinite,
        analyzeStruggle 0.2s infinite;
    background-color: #3B82F6; /* Optional: change background to indicate analyzing state */
}
    
    
    /* Queue State - Enhanced multi-color gradient with smoother movement */
.gradient-bg-queue {
    background: linear-gradient(-45deg, 
        #020617, 
        #1e40af, 
        #1e3a8a,
        #172554
    );
    background-size: 400% 400%;
    animation: waiting-gradient 8s ease infinite;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

@keyframes waiting-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ready State - Vibrant gradient pulse with enhanced glow */
.gradient-bg-ready {
    background: linear-gradient(45deg,
        #059669,
        #047857,
        #065f46,
        #047857
    );
    background-size: 300% 300%;
    position: relative;
    border: 1px solid rgba(6, 182, 212, 0.4);
    animation: ready-gradient 4s ease infinite, ready-glow 2s ease-in-out infinite;
}

@keyframes ready-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes ready-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(6, 182, 212, 0.3),
                    inset 0 0 8px rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 16px rgba(6, 182, 212, 0.5),
                    inset 0 0 16px rgba(6, 182, 212, 0.5);
    }
}

/* Hover effects with smooth transition */
.gradient-bg-queue:hover,
.gradient-bg-ready:hover,
.gradient-bg-inuse:hover {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.01);
    transition: all 0.3s ease;
} 

.share-button {
    background: rgba(59, 130, 246, 0.2);
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
position: absolute; /* Make it absolute positioned */    
right: 20px;
    

}

.share-button:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.share-button:active {
    transform: translateY(0);
}

    
    .icon-svg {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.75rem;
    color: currentColor;
    transition: all 0.3s ease;
}

/* Icon base styles */

.analysis-icon {
    position: relative;
    transition: all 0.3s ease !important;
}

.analysis-icon:active {
    transform: scale(0.95) !important;
}

/* Detective - Blue */
.analysis-icon[onclick*="detective"] {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.analysis-icon[onclick*="detective"].selected {
    transform: scale(1.05) !important;
    box-shadow: 0 0 30px rgba(59,130,246,0.5) !important;
    border: 2px solid rgba(59,130,246,0.8) !important;
    background: rgba(59,130,246,0.25) !important;
}

/* Chartist - Pink */
.analysis-icon[onclick*="chartist"] {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.analysis-icon[onclick*="chartist"].selected {
    transform: scale(1.05) !important;
    box-shadow: 0 0 30px rgba(236,72,153,0.5) !important;
    border: 2px solid rgba(236,72,153,0.8) !important;
    background: rgba(236,72,153,0.25) !important;
}

/* Alchemist - Purple */
.analysis-icon[onclick*="alchemist"] {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.analysis-icon[onclick*="alchemist"].selected {
    transform: scale(1.05) !important;
    box-shadow: 0 0 30px rgba(139,92,246,0.5) !important;
    border: 2px solid rgba(139,92,246,0.8) !important;
    background: rgba(139,92,246,0.25) !important;
}

/* Psychologist - Green */
.analysis-icon[onclick*="psychologist"] {
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.analysis-icon[onclick*="psychologist"].selected {
    transform: scale(1.05) !important;
    box-shadow: 0 0 30px rgba(34,197,94,0.5) !important;
    border: 2px solid rgba(34,197,94,0.8) !important;
    background: rgba(34,197,94,0.25) !important;
}

/* Hover effects */
.analysis-icon:hover {
    transform: translateY(-2px);
}

.analysis-icon:hover {
    box-shadow: 0 0 20px rgba(59,130,246,0.3) !important;
}

.analysis-icon[onclick*="chartist"]:hover {
    box-shadow: 0 0 20px rgba(236,72,153,0.3) !important;
}

.analysis-icon[onclick*="alchemist"]:hover {
    box-shadow: 0 0 20px rgba(139,92,246,0.3) !important;
}

.analysis-icon[onclick*="psychologist"]:hover {
    box-shadow: 0 0 20px rgba(34,197,94,0.3) !important;
}

/* Hover effects for non-selected icons */
.analysis-icon:not(.selected):hover {
    transform: translateY(-2px);
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.analysis-icon:hover .icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px currentColor);
}

.analysis-icon.active .icon-svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px currentColor);
}

/* Color variations for each icon */
.analysis-icon:nth-child(1) .icon-svg {
    color: rgb(59, 130, 246);
}

.analysis-icon:nth-child(2) .icon-svg {
    color: rgb(236, 72, 153);
}

.analysis-icon:nth-child(3) .icon-svg {
    color: rgb(139, 92, 246);
}

.analysis-icon:nth-child(4) .icon-svg {
    color: rgb(34, 197, 94);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .icon-svg {
        width: 2rem;
        height: 2rem;
    }
}
