body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.analysis-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.input-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

select, button {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    flex: 1;
    min-width: 200px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.result-section {
    min-height: 300px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    line-height: 1.6;
}

.recommendation {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.buy {
    background-color: #e8f8f5;
    border-left: 4px solid #27ae60;
}

.sell {
    background-color: #fdedec;
    border-left: 4px solid #e74c3c;
}

.neutral {
    background-color: #fef9e7;
    border-left: 4px solid #f39c12;
}

.details {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.alerts-btn {
    margin-top: 30px;
}

.warning-message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
    .input-section {
        flex-direction: column;
    }

    select, button {
        width: 100%;
    }
}