:root {
    --primary: #4CAF50;
    --secondary: #45a049;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --accent: #5d7bff;
    --dark: #0a192f;
    --light: #f8f9fa;
    --success: #00d1b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1f4b 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.trend-line-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 95%, rgba(93, 123, 255, 0.1) 95%),
        linear-gradient(transparent 95%, rgba(93, 123, 255, 0.1) 95%);
    background-size: 30px 30px;
    z-index: 0;
    opacity: 0.5;
}

.trend-line-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 95%, rgba(93, 123, 255, 0.05) 95%),
        linear-gradient(-45deg, transparent 95%, rgba(93, 123, 255, 0.05) 95%);
    background-size: 40px 40px;
}

.container {
    background: rgba(10, 12, 36, 0.95);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(93, 123, 255, 0.3);
    position: relative;
    z-index: 2;
}

.robot-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.me.columbia.edu/files/seas/styles/816x460/public/content/cs_image/2022/28/robot_hero.jpg?itok=TrT_MOb-');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent,
        transparent,
        transparent,
        var(--primary)
    );
    transform: rotate(0deg);
    animation: rotate 6s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.content {
    padding: 30px 25px;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.stock-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.stock-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 198, 255, 0.2);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.action-button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-button {
    flex: 2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: pulse-glow 2s infinite;
}

.secondary-button {
    background: linear-gradient(135deg, var(--accent), #3a56cc);
}

.whatsapp-button {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.action-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.secondary-button:hover {
    box-shadow: 0 8px 25px rgba(93, 123, 255, 0.4);
}

.whatsapp-button:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.pulse-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.pulse-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.pulse-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: pulse-ring 2s infinite;
}

.pulse-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 1;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.analysis-steps {
    width: 100%;
    margin-top: 30px;
}

.step-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: left;
    border-left: 4px solid var(--primary);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.step-item.active {
    opacity: 1;
    transform: translateX(0);
}

.step-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 16px;
}

.step-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--success), #00b3a1);
    box-shadow: 0 0 20px rgba(0, 209, 178, 0.5);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.checkmark.show {
    opacity: 1;
    transform: scale(1);
}

.checkmark::after {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: solid white;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
    margin-top: -5px;
}

.report-button {
    display: inline-block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.report-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.report-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.report-button:hover::before {
    left: 100%;
}

.status-text {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}